Part Number Hot Search : 
021B16VD M7745 C2411 OPR5200 81CNQ SGC0305A FM24C04 13003
Product Description
Full Text Search
 

To Download MCD212 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MCD212 Video Decoder and System Controller
Order this document by MCD212/D Rev. 0
Advance Information
MCD212
Video Decoder and System Controller (with JTAG)
Coming through loud and clear.
How to reach us: USA / EUROPE: Motorola Literature Distribution; P.O. Box 20912; Phoenix, Arizona 85036. 1-800-441-2447 MFAX: RMFAX0@email.sps.mot.com - TOUCHTONE (602) 244-6609 INTERNET: http://Design-NET.com
JAPAN: Nippon Motorola Ltd.; Tatsumi-SPD-JLDC, Toshikatsu Otsuki, 6F Seibu-Butsuryu-Center, 3-14-2 Tatsumi Koto-Ku, Tokyo 135, Japan. 03-3521-8315 HONG KONG: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park, 51 Ting Kok Road, Tai Po, N.T., Hong Kong. 852-26629298
*MCD212/D*
MCD212/D
MCD212: Video Decoder and System Controller TABLE OF CONTENTS
GENERAL DESCRIPTION
1.1 1.2 1.3 1.4 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 DIFFERENCES BETWEEN THE MCD211 AND THE MCD212 . . . . . . . . . . . . . . . 1-3
SECTION 1
PIN DESCRIPTION
2.1 2.2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 PIN FUNCTION DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 System Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Dynamic RAM Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Video Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 JTAG Test Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Miscellaneous Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
SECTION 2
PIN TYPES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
SYSTEM CONTROL
3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 RESET AND HALT GENERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 RESET MECHANISM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 VDSC INITIALIZATION SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 MEMORY SWAPPING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 ADDRESS DECODING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 DATA ACKNOWLEDGE GENERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 BUS ERROR GENERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 INTERRUPT GENERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
SECTION 3
(c) Motorola, Inc., 1995
MOTOROLA
MCD212
i
DRAM CONTROL
4.1 4.2 4.3 4.4 4.5 DRAM CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 DRAM ACCESS AND ARBITRATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 DRAM TIMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 DRAM DESELECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 DRAM IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
SECTION 4
IMAGE DISPLAY CONTROL
5.1 5.2 IMAGE FORMATS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.1.1 5.2.1 5.2.2 5.3 5.4 NTSC/PAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 HORIZONTAL RESOLUTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 VERTICAL RESOLUTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 RESOLUTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
SECTION 5
TIMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 5.4.1 5.4.2 5.4.3 5.4.4 ICA CONTROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 DCA CONTROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 ICA/DCA INITIALIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 ICA/DCA INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8 5.4.4.1 5.4.4.2 5.4.4.3 5.4.4.4 5.4.4.5 5.4.4.6 5.4.4.7 5.4.4.8 5.4.4.9 5.4.4.10 5.4.4.11 5.4.4.12 5.4.4.13 5.4.4.14 5.4.4.15 h80-hBF CLUT COLOR REGISTER 0-63 . . . . . . . . . . . . 5-10 hC0 IMAGE CODING METHOD REGISTER . . . . . . . . . . 5-11 hC1 TRANSPARENCY CONTROL REGISTER . . . . . . . . 5-12 hC2 PLANE ORDER REGISTER . . . . . . . . . . . . . . . . . . . . 5-12 hC3 CLUT BANK REGISTER . . . . . . . . . . . . . . . . . . . . . . . 5-13 hC4-hC6 TRANSPARENT COLOR REGISTER . . . . . . . 5-13 hC7-hC9 MASK COLOR REGISTER . . . . . . . . . . . . . . . . . 5-13 hCA, hCB DELTA YUV ABSOLUTE START VALUE REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14 hCD CURSOR POSITION REGISTER . . . . . . . . . . . . . . . . 5-14 hCE CURSOR CONTROL REGISTER . . . . . . . . . . . . . . . 5-15 hCF CURSOR PATTERN REGISTER . . . . . . . . . . . . . . . . 5-16 hC0-hD7 REGION CONTROL REGISTER 0-7 . . . . . . . . 5-16 hC8 BACKDROP COLOR REGISTER . . . . . . . . . . . . . . . . 5-17 hD9, hDA MOSAIC PIXEL HOLD FACTOR REGISTER . 5-18 hDB-hDC WEIGHT FACTOR REGISTER . . . . . . . . . . . . . 5-18
MCD212 MOTOROLA
ii
SECTION 5 (continued)
IMAGE DISPLAY CONTROL
5.5 5.6
BITMAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 EFFECT OF STANDARD BIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 5.6.1 5.6.2 EFFECT ON VERTICAL TIMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 EFFECT ON HORIZONTAL TIMING . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19
5.7
VIDEO SYNCHRONIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
SECTION 6
DISPLAY FILE DECODER
6.1 6.2
BITMAP FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 RUN-LENGTH FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 6.2.1 6.2.2 RUN-LENGTH 7-BIT CLUT FILES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 RUN-LENGTH 3-BIT CLUT FILES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.3 6.4
MOSAIC FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 PIXEL OUTPUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
SECTION 7
REAL-TIME DECODER
7.1 7.2 7.3 7.4 7.5 7.6
DELTA YUV DECODER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 CLUT DECODER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 DIRECT RGB555 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 DECODING COMBINATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 BACKDROP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 CURSOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
SECTION 8
VISUAL EFFECTS
8.1 8.2 8.3 8.4 8.5
MOTOROLA
PLANES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 PIXEL HOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 REGIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 TRANSPARENCY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3 OVERLAY AND MIXING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
MCD212 iii
REGISTER DESCRIPTION
9.1 REGISTER MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 9.1.1 9.1.2 9.1.3 9.1.4 9.1.5 9.1.6 CONTROL REGISTERS CSR1W AND CSR2W . . . . . . . . . . . . . . . . . . 9-2 STATUS REGISTERS CSR1R AND CSR2R . . . . . . . . . . . . . . . . . . . . . 9-3 DISPLAY COMMAND REGISTERS DCR1 AND DCR2 . . . . . . . . . . . . 9-4 DISPLAY DECODER REGISTERS DDR1 AND DDR2 . . . . . . . . . . . . . 9-6 VIDEO START REGISTERS VSR1 AND VSR2 . . . . . . . . . . . . . . . . . . . 9-7 DCA POINTERS DCP1 AND DCP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8
SECTION 9
SECTION 10
PIN LIST
10.1 PIN FUNCTION TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 10.2 PIN CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
ELECTRICAL SPECIFICATION
11.1 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1 11.2 DC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2 11.3 AC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
SECTION 11
PACKAGE DIMENSIONS
SECTION 12
APPENDIX A
A.1 A.2 DELTA YUV ENCODING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1 DELTA CODING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
iv
MCD212
MOTOROLA
LIST OF FIGURES
Fig. No. Title Page No.
1-1 1-2 3-1 3-2 3-3 3-4 4-1 4-2 4-3 4-4 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9
System Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Internal Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Reset and Halt Timing Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 CLK2 Clocking and Resetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Memory Swapping Timing Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Bus Error Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 DRAM Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 DRAM Cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 DRAM Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 DRAM Banks Validation/Devalidation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 Four Video Planes of the Displayed Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Example of Normal and Double Resolution Pixels . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Line Display of Interlace versus Non-interlace Modes . . . . . . . . . . . . . . . . . . . . . . . 5-3 HSYNC and BLANK Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 VSYNC and BLANK Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 CSYNC Timing in the 50 Hz (FD = 0), Non-interlace Mode (SM = 0) . . . . . . . . . . 5-5 CSYNC Timing in the 60 Hz (FD = 1), Non-interlace Mode (SM = 0) . . . . . . . . . . 5-5 CSYNC Timing in the 50 Hz (FD = 0), Interlace Mode (SM = 1) . . . . . . . . . . . . . . . 5-6 CSYNC Timing in the 60 Hz (FD = 1), Interlace Mode (SM = 1) . . . . . . . . . . . . . . . 5-6
5-10 Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14 5-11 Cursor Pattern Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 5-12 VDSC in Slave Mode with an External PLL for Clock Generation . . . . . . . . . . . . . 5-20 5-13 VDSC in Slave Mode with an External Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20 6-1 6-2 6-3 6-4 7-1 7-2 7-3 7-4
MOTOROLA
Bitmap Serialization in 8 Bits/Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Bitmap Serialization in 4 Bits/Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Run-length Format in 7 Bits/Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Run-length Format in 3 Bits/Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Data Structure of DYUV Decoder Input and Output Pixel-pair . . . . . . . . . . . . . . . . 7-2 CLUT Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 Data Structure of Input CLUT Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 Data Structure of RGB555 Input and Output Pixel . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
MCD212 v
LIST OF FIGURES (continued)
Fig. No.
Title
Page No.
8-1 8-2 8-3 8-4 8-5 8-6
Pixel Hold Example for N = 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 Example Showing Overlapping and Non-overlapping Regions . . . . . . . . . . . . . . . 8-2 Implicit Control of Region Flags (NR = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Explicit Control of Region Flags (NR = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Plane Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3 Overlay and Mixing -- One Color Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
11-1 Clock Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5 11-2 Video Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5 11-3 CPU Read Cycle Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6 11-4 CPU Write Cycle Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6 11-5 System Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6 11-6 DRAM Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7 11-7 Reset and Halt Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
vi
MCD212
MOTOROLA
LIST OF TABLES
Table No. Title Page No.
3-1 3-2 4-1 4-2 4-3 4-4 4-5 4-6 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9
Address Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 DTACK Delay for ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Address Map of the DRAM Banks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Memory Address Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 CAS1 and CAS2 Assertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 Implementing 256K x 4 DRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 Implementing 1M x 4 DRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 Implementing 256K x 16 DRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 Normal Full-screen Display Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Horizontal Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Scan Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 Vertical Resolution in the Non-interlace Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 Horizontal Synchronization Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 Vertical Synchronization Timing (in lines) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 Vertical Synchronization Timing (in lines) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 ICA Pointer Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 ICA1/DCA1 and ICA2/DCA2 Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5-10 Possible DCA1/DCA2 Fetches per Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8 5-11 ICA Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8 5-12 DCA Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9 5-13 Register Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10 5-14 CLUT Color Register 0-63 -- Address h80 - hBF . . . . . . . . . . . . . . . . . . . . . . . . . 5-10 5-15 CLUT RAM Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 5-16 Image Coding Method Register - Address hC0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 5-17 CM1x, CM2x: Coding Method for Plane A, B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 5-18 Transparency Control Register - Address hC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 5-19 Transparency Control Register - Address hC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 5-20 Plane Order Register - Address hC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 5-21 Plane Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13 5-22 CLUT Bank Register - Address hC3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13 5-23 Bank Select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13 5-24 Transparent Color Register - Address hC4 - hC6 . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
MOTOROLA MCD212 vii
LIST OF TABLES (continued)
Table No. Title
Page No.
5-25 Mask Color Register - Address hC7 - hC9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13 5-26 Delta YUV Absolute Start Value Register - Address hCA - hCB . . . . . . . . . . . . . 5-14 5-27 Cursor Position Register - Address hCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14 5-28 Cursor Control Register - Address hCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 5-29 Cursor Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 5-30 Cursor Pattern Register - Address hCF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 5-31 Region Control Register - Address hD0 - hD7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 5-32 Operation Control Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 5-33 Background Color Register - Address hD8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 5-34 Color of Background Plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18 5-35 Mosaic Pixel Hold Factor Register - Address hD9, hDA . . . . . . . . . . . . . . . . . . . . 5-18 5-36 Weight Factor Register - Address hDB - hDC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18 5-37 Bitmap Width for Bitmap Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 5-38 Synchronization Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20 6-1 6-2 6-3 6-4 6-5 6-6 7-1 7-2 7-3 7-4 7-5 9-1 9-2 9-3 9-4 9-5 9-6 9-7
viii
File Type of Display 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 File Type of Display 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 Mosaic Factor of Display 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Mosaic Factor of Display 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Output Modes of Channel 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 Output Modes of Channel 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 Dequantizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 Display Modes for Plane A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Display Modes for Plane B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Possible Combinations of Display Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Possible Cursor and Background Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 Register Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1 Register Bitmap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 Control Register 1 - Write, 4FFFF0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 DTACK Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 Control Register 2 - Write, 4FFFE0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 Status Register CSR1R - Read, 4FFFF1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 Status Register CSR2R - Read, 4FFFE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
MCD212 MOTOROLA
LIST OF TABLES (continued)
Table No. Title
Page No.
9-8 9-9
Display Command Register DCR1 - Write, 4FFFF2 . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 Crystal Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
9-10 Scan Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-11 Channel 1 Color Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-12 ICA1/DCA1 Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-13 Display Command Register DCR2 - Write, 4FFFE2 . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-14 Channel 2 Color Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-15 ICA1/DCA1 Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 9-16 Display Decoder Register 1 - Write, 4FFF8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 9-17 Channel 1 Mosaic Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 9-18 Channel 1 Display File Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 9-19 Display Decoder Register 2 - Write, 4FFFE8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 9-20 Channel 2 Mosaic Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7 9-21 Channel 2 Display File Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7 9-22 Video Start Register 1 - Write, 4FFFF4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7 9-23 Video Start Register 2 - Write, 4FFFE4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7 9-24 Display Control Pointer 1 - Write, 4FFFFA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8 9-25 Display Control Pointer 2 - Write, 4FFFEA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8 A-1 16-bit Quantization Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different applications. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
MOTOROLA
MCD212
ix
x
MCD212
MOTOROLA
1
GENERAL DESCRIPTION
1.1
INTRODUCTION
The Video Decoder and System Controller with JTAG (VDSC/JTAG) is a CMOS device integrating a 680X0 family system controller and video graphics decoder, see Figure 1-1 below. The MCD212 is a programmable, multi-scan video device that can function as either a master or a slave. It is functionally equivalent to the MCD211 with the addition of JTAG testing. The MCD212 is a drop-in replacement for the MCD211 if the JTAG functionality is not required. It can directly drive up to 5M bytes1 of memory and provides chip-select signals for system ROM and peripherals. The on-chip DRAM controller can support up to 4M bytes DRAM and controls access to the unspecialized System or Video DRAM. The CPU can access any memory location, even during active video display lines, thereby boosting system performance. The video image is made up of four separate video planes: the cursor, two graphics planes (A and B), and one background plane. The video decoder receives two independent video channels from the Video DRAM. Each channel has a real-time file decoder permitting the display of normal, run-length, and mosaic compressed files. The resulting files can contain DYUV, CLUT, or direct RGB data. After decoding the resulting planes, A and B can be combined with a cursor and background allowing for visual effects like dissolves, mosaics, partial updates, etc., under software control. The resulting display is available in Red, Green, and Blue components, each being eight bits in length. The display resolution is programmable up to 768 x 560.
68000 BUS VDSC DAC RGB VIDEO
DRAM
Figure 1-1. System Block Diagram
1. In this document a word is defined as 16 bits and a long-word as 32 bits. Hexadecimal figures are indicated by an h in front.
MOTOROLA
MCD212
1-1
1.2
FEATURES
System Interface:
* Direct Interface for 680X0 Bus Compatible Devices * 1M Byte ROM Control * 1K Byte I/O Control * Reset Sequencer, Including ROM Shadowing * Watchdog Timer
DRAM Interface:
* 4M Byte DRAM Direct Drive * 256K x 4, 1M x 4, and 256K x 16 DRAM Types Can be Used
Video Interface:
* Up to 768 x 560 Screen Resolution * Capability to Display Run-length Coded Files * Mosaic Effect * 256-entry Color Look Up Table (CLUT) * Two Delta YUV Decoders * Cursor Shape, Color, and Blink Control * Overlaying of Four Video Planes * Special Effects via Weight Control, Priority Control, etc. * Dynamic Programmable Registers and CLUT Reload in Retrace Period * Digital RGB Output (8 Bits per Component) * Synchro Generator for 50 and 60 Hz Scan * Synchronization with External Video
General:
* CMOS Technology * 160-pin Quad Flat Pack Plastic Package
1-2
MCD212
MOTOROLA
1.3
BLOCK DIAGRAM
MA9 - MA0 MD15 - MD0
CAS1
CAS2
UWR
LWR
A22 - A1 D15 - D0 UDS LDS R/W CS DTACK RSTOUT HALT BERR CSROM CSIO INT ICA2/DCA2 CONTROL ICA1/DCA1 CONTROL ICA2/DCA2 INSTRUCTIONS HOST I/F DRAM CONTROL M/S VSYNC DISPLAY CONTROL HSYNC CSYNC BLANK VSD VSA
TCK TMS TDI DTACKSEL TDO A23 AS JTAG TEST I/F
DISPLAY FILE DECODER 2
DISPLAY FILE DECODER 1
RAS
REAL TIME DECODER
VISUAL EFFECTS
R(7:0) G(7:0) B(7:0)
MISC.
ICA2/DCA2 INSTRUCTIONS
RSTIN
Figure 1-2. Internal Block Diagram
1.4 DIFFERENCES BETWEEN THE MCD211 AND THE MCD212
There are two differences between the parts: 1. JTAG testing has been added for automated board testing. The additional pins required to do this were VSS pins on the MCD211. Hence, the MCD212 can be put in place of an MCD211 and will function identically. The functionality of the R/W, LDS, UDS, A1 - A22, RAS pins have been enhanced. (See Chapter 2 for the names of the new pins and the changes in functionality.) 2. Also, the processor interface timing has been improved to allow operation with higher speed processors. This is detailed in Section 11.3.
MOTOROLA
CLK2 VDD
CLK
CLK2
MCD212
VSS
1-3
2
PIN DESCRIPTION
2.1
INTRODUCTION
"Active" and "inactive" or "asserted" and "negated" are referred to in this user manual independent of whether the signal is active in the high (logic 1) state or the low (logic 0) state. The definition of the active level of each signal may be found in the individual pin descriptions.
2.2 PIN FUNCTION DESCRIPTION
2.2.1
System Interface
Mnemonic
Type
Name and Function
A1 - A22 D0 - D15
I I/O
System address lines. Provides address for access from the system bus. Must be stable when UDS and/or LDS are asserted. Bidirectional data bus, three-state. Used to transfer DATA between system bus and VDSC. Must be stable when UDS or LDS is asserted during write access. Driven by VDSC during read cycles. D0 is the least significant bit. Upper Data Strobe. Active low. When asserted, UDS indicates that data is being addressed on D8 to D15. Lower Data Strobe. Active low. When asserted, LDS indicates that data is being addressed on D0 to D7. Read/Write. This input indicates transfer on the system bus. When low, indicates data is to be written into VDSC controlled resources or internal registers. When high, indicates a read is taking place. Chip Select. Active low. When asserted, indicates data transfer between system bus and VDSC controlled resources is enabled. Validates address decode for system access. Data Transfer Acknowledge signal. Active low, three-state. Asserted by VDSC when the system bus cycle, concerning VDSC controlled resources, can be continued. This pin must be pulled up externally. Reset output. Active low, open drain. Asserted by the VDSC reset sequencer during the reset procedure. This pin must be pulled up externally. Halt line output. Active low, open drain. Asserted by the VDSC reset sequencer during the reset procedure. This pin must be pulled up externally. Bus Error output. Active low, three-state. Asserted, when enabled, by the VDSC watchdog timer circuit if UDS or LDS is still asserted at the end of the time-out period. This pin must be pulled up externally.
MCD212 2-1
UDS LDS R/W
I I I
CS
I
DTACK
I/O
RSTOUT
O
HALT
O
BERR
O
MOTOROLA
CSROM
O
Chip Select ROM output. Active low. Asserted by an access on the system bus in the ROM address area, and when UDS and/or LDS are asserted. Chip Select I/O output. Active low. Asserted by an access on the system bus in the I/O area, and when UDS and/or LDS are asserted. Interrupt request output. Active low, three-state. Used to generate interrupts to the CPU. This pin must be pulled up externally.
CSIO
O
INT
O
2.2.2
Dynamic RAM Interface
Mnemonic
Type
Name and Function
MA0 - MA9 MD0 - MD15
O I/O
Memory Address lines. Multiplexed row/column address line outputs for DRAM control. Bidirectional Memory Data bus, three-state. Used to transfer data between DRAM bus and VDSC. Stable when LWR and/or UWR is asserted during a write cycle. Driven by VDSC during read cycles. MD0 is the least significant bit. Row Address Strobe. Active low. Validates the DRAM row address on the falling edge. Column Address Strobe for memory bank 1. Active low, three-state. Validates the DRAM column address on the falling edge. Input during reset sequence to select/deselect memory bank 1. Active high validates bank inputs. Column Address Strobe for memory bank 2. Active low, three-state. Validates the DRAM column address on the falling edge. Input during reset sequence to select/deselect memory bank 2. Active high validates bank inputs. Write signal for DRAM. Active low. It is asserted when writing MD8 - MD15 to the DRAM. Write signal for DRAM. Active low. It is asserted when writing MD0 - MD7 to the DRAM.
RAS CAS1
O I/O
CAS2
I/O
UWR LWR
O O
2.2.3
Video Interface
Mnemonic
Type
Name and Function
R0 - R7 G0 - G7 B0 - B7 OE VSYNC
O O O I I/O
Red color output (R7 = MSB, R0 = LSB). Three-state. Green color output (G7 = MSB, G0 = LSB). Three-state. Blue color output (B7 = MSB, B0 = LSB). Three-state. Output Enable. Active high. It disables three-state of RGB output. Vertical Synchronization. Active low. In master mode, this output is used as vertical synchronization signal for monitor. In slave TV mode it becomes a vertical synchronization input. Horizontal Synchronization. Active low. This output is used as a horizontal synchronization signal. Composite synchronization. Active low. This output is used as a composite synchronization signal.
HSYNC CSYNC
O O
2-2
MCD212
MOTOROLA
BLANK VSD VSA
O O O
Blanking output. Active low. It is asserted during vertical and horizontal blanking periods and high the rest of the time. Video Select for digital video. Active low. This signal is synchronous to the digital video output. Video Select for analog video. Active low. This signal is a CLK2 clock cycle delayed version of VSD and synchronous to analog video after clocked D/A conversion. Master/Slave TV mode selection. When high, the VDSC generates the video timing. When low the vertical synchronization can be slaved to an external video timing.
M/S
I
2.2.4
JTAG Test Signals
Mnemonic
Type
Name and Function
TCK TMS
I I
JTAG Test Clock input. Provides the clock for the test logic defined by IEEE Std. 1149.1-1990. 100 k internal pull-up. JTAG Test Mode Select input. The signal decoded by the TAP controller to control test operations, defined by IEEE Std. 1149.1-1990. 100 k internal pull-up. JTAG Test Data input. Pin at which serial test instructions and data are received by the test logic, defined by IEEE Std. 1149.1-1990. 100 k internal pull-up. JTAG Test Data output. Three-state. Serial output for test instructions and data from the test logic defined by IEEE Std. 1149.1-1990. System Address line (three-stated in functional mode). During JTAG EXTEST, A23 may drive system address line A23 off-chip. System Address strobe (three-stated in functional mode). During JTAG EXTEST, AS may drive the system address strobe line AS off-chip. Selects advance time of the falling edge of DTACK before data (read) is valid on pins D0 - D15. For designs using 68000/68070-16 or 68340/341-16 series processors, tie DTACKSEL low; for 68340/341-25 designs, tie DTACKSEL high.
TDI
I
TDO
OT
A23 AS
OT OT
DTACKSEL
I
2.2.5
Miscellaneous Signals
Mnemonic
Type
Name and Function
CLK RSTIN CLK2 CLK2 VDD VSS
I I O O I I
External clock input. Reset input. Active low. Schmitt trigger. Initiates a reset sequence. CLK/2 clock output. Frequency is CLK frequency divided by 2. CLK/2 clock output. Frequency is CLK frequency divided by 2. Inverse of CLK2. Power supply pins (5 V). Power and signal ground pins.
NOTE: All the pins are TTL compatible, except for CLK and RSTIN, which use CMOS levels.
MOTOROLA
MCD212
2-3
2.3
PIN TYPES
CMOS input CMOS Schmitt input TTL input 6 mA output
:CLK :RSTIN :all inputs except CLK, RSTIN :D0 - D15, RSTOUT, HALT, BERR, INT, MD0 - MD15, MA0 - MA9, LWR, UWR, R0 - R7, G0 - G7, B0 - B7, BLANK, CSYNC, HSYNC, VSYNC, VSD, CLK2, CLK2 :CSIO, CSROM :RAS, CAS1, CAS2
12 mA output 16 mA output
2-4
MCD212
MOTOROLA
3
SYSTEM CONTROL
The VDSC performs several 680X0 system control functions.
3.1 RESET AND HALT GENERATION
When the RSTIN pin is released, the timing chain counts eight video frames (= 8 x 312 x 112 x 16 CLK cycles) in the default internal configuration at power on before the RSTOUT (reset output) pin is released, i.e., 160 ms with a 28 MHz crystal, 150 ms with a 30 MHz crystal, or 148 ms with a 30.2097 MHz crystal. The HALT pin is released one video line later. At RESET, VDSC registers are configured in the state indicated in Section 3.2.
POWER ON
RSTIN RSTOUT = SYSTEM RESET
HALT t > 100 ms
1 VIDEO LINE
Figure 3-1. Reset and Halt Timing Chart
3.2
RESET MECHANISM
The following bits in these control registers are reset by the RESET input: Image Coding Method Register: (hCO): Cursor Control Register: (hCE): Background Color Register: (hD8): bits 0, 1, 2, 3, 8, 9, 10, 11, 18 (plane A and B off, external video disabled) bit 23 (cursor disabled) bits 0, 1, 2, 3 (black backdrop)
The following bits in internal registers are reset by the RESET input: CSR1W: CSR2W: DCR1: DCR2: DDR1: DDR2: DI1, DD1, DD2, TD, DD, ST, BE DI2 DE, CF, FD, SM, CM1, IC1, DC1 CM2, IC2, DC2 MF1, MF2, FT1, FT2 MF1, MF2, FT1, FT2
MCD212 3-1
MOTOROLA
The result of a reset will be a constant black level at the RGB outputs and no video synchronization output. The active low reset pin must be connected to the system reset signal. The RSTIN also has an effect on the clock output CLK2 (see Figure 3-2). Two different waveforms for CLK2 are possible. It can be seen that CLK2 is present during and after reset.
CLK RSTIN CLK2 OR CLK2
Figure 3-2. CLK2 Clocking and Resetting CLK2 is clocked by the positive edge of CLK. Its phase after reset is related to the rising edge of RSTIN. CLK2 is always the inverse of CLK2.
3.3 VDSC INITIALIZATION SEQUENCE
In order to have a proper start-up, register CSR1W must be initialized to the DRAM used. Display and control data must be loaded in DRAM. Register DCR1 must be initialized to the required display mode at a rising edge of the DA-bit (CSR1R register). At a falling edge of the DA-bit (CSR1R register), the DE-bit (DCR1 register) must be set. Now video synchronization is generated. On the next rising edge of the DA-bit, the IC1 bit (DCR1 register) and IC2-bit (DCR2 register) must be set and on the next falling edge of the DA-bit the DC1-bit (DCR1 register) and DC2-bit (DCR2 register) must be set. Now the RGB outputs will generate a picture.
3.4 MEMORY SWAPPING
After RSTIN is released the first four 680X0 word accesses are counted. If CS is asserted at such a word access, a chip select to the ROM is given. The 680X0 first four accesses correspond to the SSP (System Stack Pointer) and the PC (Program Counter). The SSP and PC must be located at address h400000 and h400004 which are decoded during the swapping. Address h0 to h7 are normally decoded afterwards.
RTSIN
U/LDS ADDRESS ACCESS TYPE h0 ROM h2 ROM h4 ROM h6 ROM PC ROM OR RAM ROM
Figure 3-3. Memory Swapping Timing Chart
3-2
MCD212
MOTOROLA
3.5
ADDRESS DECODING
The VDSC is connected to the system bus via 22 address lines and upper and lower data strobes. The address decoding is validated by CS. Table 3-1. Address Map
h000000 - h3FFFFF h400000 - h4FFBFF h4FFC00 - h4FFFDF h4FFFE0 - h4FFFEF h4FFFF0 - h4FFFFF DRAM (4M byte) System ROM (1M byte) System I/O (1K byte) Channel 2 internal registers Channel 1 internal registers
NOTE:The system ROM decoding asserts the CSROM pin that is not sensitive to the R/W signal. This allows the use of static RAM in the ROM mapping area. The system I/O decoding asserts the CSIO pin.
3.6 DATA ACKNOWLEDGE GENERATION
A data transfer is initiated by an upper and/or lower data strobe (U/LDS) from the system. A data transfer is acknowledged by the VDSC via DTACK. A data transfer is terminated by U/LDS becoming inactive followed by DTACK becoming inactive. The VDSC generates the data acknowledge (DTACK) depending on the addressed area:
* Access to the DRAM is acknowledged as soon as it is certain that data can be read or written by the
system.
* Access to the system ROM is acknowledged after a programmable number of clock or CLK cycles. The
DTACK delay is controlled by Control Register CSR1W. If U/LDS becomes inactive before DTACK is generated by the VDSC, DTACK will not be generated. Table 3-2. DTACK Delay for ROM
DD 0 1 1 1 1 DD1 x 0 0 1 1 DD2 x 0 1 0 1 CLK Cycles 11 12 34 56 78 9 10
NOTE: Access to the SYSTEM I/O device (CSIO pin) is not acknowledged by the VDSC but by the addressed device.
MOTOROLA
MCD212
3-3
3.7
BUS ERROR GENERATION
The BERR signal is asserted if enabled by writing a 1 in the BE (bus error) bit of the control register CSR1W and if a data transfer is not acknowledged for at least one entire video line (approximately 64 s) after selection. The BE flag bit is then set in the CSR2R register. The BERR pin is released as soon as the CPU releases UDS and LDS. The BE flag is reset when the CPU reads the CSR2R status register.
U/LDS DTACK BERR NO DTACK READ CSR2R
BE FLAG BIT t > 1 VIDEO LINE
Figure 3-4. Bus Error Timing
3.8
INTERRUPT GENERATION
The VDSC can generate interrupts to the CPU by asserting its INT pin. The following conditions can generate an interrupt:
* The ICA1/DCA1 controller fetches an interrupt instruction. Then, the IT1 bit of the CSR2R register is
set. If the DI1 bit in the CSR1W register is reset to 0, the IT1 bit of the CSR2R register can generate an interrupt on the INT pin.
* The ICA2/DCA2 controller fetches an interrupt instruction. Then, the IT2 bit of the CSR2R register is
set. If the DI2 bit in the CSR2W register is reset to 0, the IT2 bit of the CSR2R register can generate an interrupt on the INT pin. INT = not((not(DI1) and IT1) or (not(DI2) and IT2)) The IT1 bit and IT2 bit are reset after the CPU reads the CSR2R register. The INT pin is inactive when both IT1 and IT2 are reset (see equation above).
3-4
MCD212
MOTOROLA
4
DRAM CONTROL
The VDSC has an on-chip dynamic RAM (DRAM) controller. It supports several DRAM configurations and performs DRAM arbitration, address multiplexing, timing generation, and refresh.
4.1 DRAM CONFIGURATION
The DRAM types the VDSC can drive are 256K x 4, 1M x 4 and 256K x 16. They always form a 16-bit data bus. The devices can be configured in one or two banks. Six configurations are possible:
* 4 Devices 256K x 4 (512K byte) * 8 Devices 256K x 4 (1M byte) * 4 Devices 1M x 4 * 8 Devices 1M x 4
(2M byte) (4M byte)
* 1 Device 256K x16 (512K byte) * 2 Devices 256K x16 (1M byte)
The TD (type of device) bit of the CSR1W register selects either 256K x 4, 256K x 16 (TD = 0), or 1M x 4 (TD = 1) DRAM type. The selection between one or two banks is done by fixing the CAS1 and CAS2 pins to a logical level during reset. CAS1 corresponds to bank 1 and CAS2 corresponds to bank 2. See Table 4-1 for the address map of the DRAM banks. No DTACK is generated for addresses outside a certain configuration.
MOTOROLA
MCD212
4-1
Table 4-1. Address Map of the DRAM Banks
Address Range h000000 - h03FFFF h040000 - h07FFFF h080000 - h0BFFFF h0C0000 - h0FFFFF h100000 - h13FFFF h140000 - h17FFFF h180000 - h1BFFFF h1C0000 - h1FFFFF h200000 - h23FFFF h240000 - h27FFFF h280000 - h2BFFFF h2C0000 - h2FFFFF h300000 - h33FFFF h340000 - h37FFFF h380000 - h3bFFFF h3c0000 - h3FFFFF A22 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A21 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 A20 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 A19 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 A18 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 bank 1 bank 2 TD = 0 bank 1 bank 2 TD = 1 bank 1 bank 1 bank 1 bank 1 bank 2 bank 2 bank 2 bank 2 bank 1 bank 1 bank 1 bank 1 bank 2 bank 2 bank 2 bank 2
4.2
DRAM ACCESS AND ARBITRATION
The VDSC allows the DRAM to be used simultaneously as both video and system memory so that a CPU can access any location of the entire memory space even during active video display time. Additionally, the DRAM bus can be accessed by several masters and an arbitration scheme is implemented to provide each master with a guaranteed access time. The various masters are:
* The System Bus (CPU or DMA cycles) * Display Decoder 1 * Display Decoder 2 * ICA/DCA Controller 1 * ICA/DCA Controller 2 * The DRAM Refresh Controller
The DRAM access consists of consecutive display periods of 32 CLK cycles, which are subdivided into four slots (see Figure 4-1). The CH#1 slot is used by a video related function of channel 1 (display decoder 1 or ICA/DCA controller 1). The CH#2 slot is used by a video related function of channel 2 (display decoder 2 or ICA/DCA decoder 2). The DRAM refresh controller uses the CH#1 and CH#2 slots for RAS only refresh with two DRAM rows per slot. The system slots are available for a DRAM access from the system bus (e.g., CPU or DMA cycles) once every 16 CLK periods.
1 DISPLAY PERIOD (32 CYCLES) 16 CYCLES CH#1 SYS. 16 CYCLES CH#2 SYS. CH#1 SYS. CH#2 SYS. NEXT DISPLAY PERIOD
Figure 4-1. DRAM Access
4-2
MCD212
MOTOROLA
Eleven CLK periods are used for accessing CH#1 or CH#2 data, as shown in Figure 4-3. This represents four DRAM accesses for data. These four 16-bit words can represent varying amounts of pixel data in plane #1 or plane #2. For example, when using RGB555 data type, the four accesses represent color information for four pixels. (NOTE: Only plane 2 is available with RGB555 data; therefore, one complete display period contains color information for eight pixels.) The remaining five CLK periods are used for one DRAM access for system data. When no video or refresh functions are required, the access to DRAM is free-running with no display periods, so that a system bus access can be accepted at any time. Examples of this are after a stop instruction in ICA/DCA or during run-length files. The selection between display, ICA, DCA, and refresh is done according to Figure 4-2, the time domain of a video frame.
ICA
FREE-RUN VIDEO FIELD
RF
DISPLAY
RF
DCA VERT. RES
1
HORIZ. RES/8 + 1
1 VIDEO LINE
0 TO 8
NOTES: 1. RF is the refresh time area. Eight DRAM rows are refreshed per video line. 2. ICA and DCA only exist if enabled. 3. The free-run area starts when the ICA/DCA is completed or when an ICA/DCA stop instruction is encountered. 4. If the display is not enabled, the entire area is free-run except the refresh areas. 5. Each number is the number of display periods (32 CLK cycles). 6. Horizontal resolution is the number of pixels in normal resolution.
Figure 4-2. DRAM Cycles Example: The ICA time is at the beginning of each vertical field as shown in Figure 4-2. If there are no ICA instructions to execute, then this is free-run time. There is one display period when eight row addresses can be refreshed. Then, to calculate the maximum number of display periods in the display area, divide the normal resolution by 8 and add 1 (i.e., 384/8 = 48). Then there is one display period for refresh. Next is the DCA time if it has been enabled. The number of pixel periods of the DCA is programmed in the DCR register, with 8 (= 64 bytes) being the maximum. The rest of the video line time is then available as free-run time.
MOTOROLA
MCD212
4-3
4.3
DRAM TIMING
The DRAM timing is based on the CLK clock (see Figure 4-3).
SYSTEM CLK CH#1 OR CH#2
RAS CAS1 CAS2 MA0 - MA9 UWR LWR ROW COL ROW COL COL COL COL
MD0 - MD15 WRITE
MD0 - MD15 READ
Figure 4-3. DRAM Timing
In the CH#1/CH#2 slot a burst of four words are read in fast page mode. If a page break occurs, the burst is incomplete. In the system slot a random read or write is possible. The memory address bus (MA) is multiplexed in order to present the row address on RAS falling edge and the column address on CAS1 or CAS2 falling edge. The correspondence between memory address bus, MA0 - MA9 and system address A1 - A22 is indicated in Table 4-2. CAS1 and CAS2 function as bank select signals (see Table 4-3). Table 4-2. Memory Address Distribution
MA0 RAS CAS A11 A1 MA1 A12 A2 MA2 A13 A3 MA3 A14 A4 MA4 A15 A5 MA5 A16 A6 MA6 A17 A7 MA7 A18 A8 MA8 Ax A9 MA9 A19 A10
Ax = A10 for TD = 0 (256K x 4, 256K x 16) Ax = A18 for TD = 1 (1M x 4)
Table 4-3. CAS1 and CAS2 Assertion
TD = 0 TD = 1 CAS1 asserted if validated and A18 = 0, A19 = 0, A20 = 0, A22 = 0 CAS2 asserted if validated and A18 = 1, A19 = 0, A20 = 0, A22 = 0 CAS1 asserted if validated and A20 = 0, A22 = 0 CAS2 asserted if validated and A20 = 1, A22 = 0
4-4
MCD212
OO OO OOOOOO OO OO OOOOOO
MOTOROLA
OO OO
4.4
DRAM DESELECT
During the reset period, banks can be devalidated if their corresponding CAS pin is grounded. No DTACK is generated for devalidated banks. A pull-up is needed to validate banks.
+
22K
10K
GND
DEVALIDATION OF BANKS
Figure 4-4. DRAM Banks Validation/Devalidation
4.5
DRAM IMPLEMENTATION
Tables 4-4 thru 4-6 show how the 256K x 4, 1M x 4, and 256K x 16 type DRAMs are connected to the VDSC. Table 4-4. Implementing 256K x 4 DRAM
Bank 1 DRAM 1 MD0 - MD3 MD4 - MD7 MD8 - MD11 MD12 - MD15 MA0 - MA8 LWR UWR RAS CAS1 CAS2 RAS CAS/OE RAS CAS/OE A0 - A8 W A0 - A8 W W RAS CAS/OE W RAS CAS/OE CAS/OE CAS/OE CAS/OE CAS/OE RAS RAS A0 - A8 D0 - D3 D0 - D3 D0 - D3 D0 - D3 A0 - A8 A0 - A8 W A0 - A8 W W RAS W RAS A0 - A8 DRAM 2 DRAM 3 DRAM 4 DRAM 5 D0 - D3 D0 - D3 D0 - D3 D0 - D3 A0 - A8 Bank 2 DRAM 6 DRAM 7 DRAM 8
MOTOROLA
MCD212
OO OO OO
CASX
OO OO OO
CASX
VALIDATION OF BANKS
4-5
Table 4-5. Implementing 1M x 4 DRAM
Bank 1 DRAM 1 MD0 - MD3 MD4 - MD7 MD8 - MD11 MD12 - MD15 MA0 - MA9 LWR UWR RAS CAS1 CAS2 RAS CAS/OE RAS CAS/OE A0 - A9 W A0 - A9 W W RAS CAS/OE W RAS CAS/OE CAS/OE CAS/OE CAS/OE CAS/OE RAS RAS A0 - A9 D0 - D3 D0 - D3 D0 - D3 D0 - D3 A0 - A9 A0 - A9 W A0 - A9 W W RAS W RAS A0 - A9 DRAM 2 DRAM 3 DRAM 4 DRAM 5 D0 - D3 D0 - D3 D0 - D3 D0 - D3 A0 - A9 Bank 2 DRAM 6 DRAM 7 DRAM 8
Table 4-6. Implementing 256K x 16 DRAM
Bank 1 DRAM 1 MD0 - MD15 MA0 - MA8 LWR UWR RAS CAS1 CAS2 D0 - D15 A0 - A8 LW UW RAS CAS/OE CAS/OE Bank 2 DRAM 2 D0 - D15 A0 - A8 LW UW RAS
4-6
MCD212
MOTOROLA
5
IMAGE DISPLAY CONTROL
The VDSC is programmable on a line-by-line (DCA) and/or field-by-field (ICA) basis. The image displayed by the VDSC is made up of four distinct, programmable graphics planes, as indicated in Figure 5-1. The foremost is the cursor plane, behind which are two video planes (A and B), and behind them is a background plane. The data for plane A is handled by CH#1, while CH#2 handles the B plane data. The order in which graphics planes A and B are displayed is controllable via the plane order register (hC2) through CH#1.
The VDSC is programmable for several pre-defined modes of display and contains two video start address registers (VSR1 and VSR2) to locate the video displays within the DRAM address space. The display logic reads words from the video display area and sends them to the display file decoder which serializes the data, either nibble per nibble or byte per byte. This programmability and flexibility allows the VDSC to do various special effects such as subscreens, windowing, mosaics, overlay and mixing, and transparency, among others.
5.1 IMAGE FORMATS
The VDSC supports NTSC monitor, NTSC TV, and PAL TV formats as well as providing a means to display images in one format that were created in the other. This compatibility feature allows this part to be used throughout the world. Also, interlace and non-interlace displays are supported.
5.1.1 NTSC/PAL
NTSC is the North American and Japanese standard for broadcast TV. The display is made up of 525 horizontal lines, counted in the vertical direction, displayed 30 times in one second. NTSC Monitor is a little-used standard in North America for in-studio use on monitors. It is also made up of 525 horizontal lines. PAL is the European standard for broadcast TV. Its display is made up of 625 horizontal lines, counted in the vertical direction, but only displayed 25 times each second. Both systems allow for an image (or frame) to be made up of two fields, an odd and an even field. The field rate is twice the frame rate (60 Hz for NTSC and 50 Hz for PAL). Although each frame is made up of 525/625 lines, only 480/560 are visible on the screen.
MOTOROLA MCD212 5-1
OOOOOOOOO OOOOOOO OOOOOOOOOO OOOOOOOO OOOOOO OOOOOOOOOO OOOOOOOO OOOOOO OOOOOOOOOO OOOOOOOO OOOOOO OOOOOOOOOO OOOOOOOO OOOOOO OOOOOOOOOO OOOOOOOO OOOOOO
BACKGROUND/EXTERNAL VIDEO GRAPHICS PLANE B CURSOR PLANE GRAPHICS PLANE A
Figure 5-1. Four Video Planes of the Displayed Image
5.2
RESOLUTION
The normal full-screen resolution of the VDSC is shown in Table 5-1. Table 5-1. Normal Full-Screen Display Resolution
Display NTSC Monitors NTSC TVs PAL TVs Number of Pixels Horizontally 360 384 384 Number of Pixels Vertically 240 240 280
In addition to normal resolution, the VDSC provides both double resolution and high resolution modes. Double resolution is defined as twice the normal resolution in the horizontal direction, whereas high resolution is defined as twice the resolution in both horizontal and vertical directions. Although most TVs are not capable of clearly displaying single pixels in double resolution mode, this mode is useful in two areas:
* Where double resolution pixel pairs can give increased positional accuracy. * Where a single pixel's reduced display quality does not reduce the identifiability of the graphic object
or character (i.e., Kanji characters).
NORMAL RESOLUTION (SINGLE PIXELS)
DOUBLE RESOLUTION (PIXEL PAIRS)
DOUBLE RESOLUTION (SINGLE PIXELS)
Figure 5-2. Example of Normal and Double Resolution Pixels
5.2.1
Horizontal Resolution
The horizontal resolution can be different between the two graphics planes (A and B) but both are controlled by various factors; the CF (Crystal Frequency) bit in the DCR1 register, the ST (Standard) bit in the CSR1W register, the CM1(Color Mode 1) bit in the DCR1 register, the CM2 (Color Mode 2) bit in the DCR2 register, and the frequency of the crystal. The effects of the various bits on the resolution are shown in Table 5-2. Table 5-2. Horizontal Resolution
CF 0 1 1 ST x 0 1 Frequency (MHz) 28 30/30.2097 30/30.2097 Pixels/Line CM = 0 360 384 360 CM = 1 720 768 720 Active Line (s) 51.4 51.2/50.84 48/47.67 Display System NTSC Monitor PAL/NTSC TV PAL/NTSC TV
5-2
MCD212
MOTOROLA
5.2.2
Vertical Resolution
The vertical resolution is dependent on the SM (Scan Mode) bit of the DCR1 register, the FD (Frame Duration) bit which is also in the DCR1 register, and the ST (Standard) bit which is in the CSR1W register. The SM bit controls the scan mode of the VDSC by selecting between the interlace mode and the non-interlace mode as described in Table 5-3 and shown in Figure 5-3. Table 5-3. Scan Modes
SM 0 1 SCAN Mode Description Non-interlace mode. One image is composed of one field. Interlace mode. One image is composed of two fields.
IMAGE LINE 1 LINE 2 LINE 3 NON-INTERLACE MODE
* * *
LINE N
* * *
LINE 1 LINE 1 LINE 2 INTERLACE MODE LINE 3 LINE 4 LINE 5 LINE N-1 LINE 2 LINE 3 LINE 4 LINE 5 LINE 6
* * *
LINE 6 LINE N ODD FIELD + EVEN FIELD =
* * *
* * *
LINE N-1 LINE N TOTAL IMAGE
Figure 5-3. Line Display of Interlace versus Non-interlace Modes The FD bit and the ST bit only affect the display in the non-interlace mode. They are shown in Table 5-4. Table 5-4. Vertical Resolution in the Non-interlace Mode
FD 0 1 1 ST 0 1 x # of Video Lines 280 240 240 Frame Duration (ms) 18 15.3 15.3 Image Frequency (Hz) 50 50 60 Display Type PAL PAL NTSC
MOTOROLA
MCD212
5-3
5.3
TIMING
The following tables and figures depict the horizontal and vertical timing for the HSYNC, VSYNC, CSYNC, and BLANK signals in the master mode.
A HSYNC C B D BLANK NOTES: A: total horizontal line duration B: active horizontal line duration 1 cycle = 16 CLK periods 1 cycle = 571.43 ns (CLK = 28 MHz - NTSC monitor) 1 cycle = 533.33 ns (CLK = 30 MHz - PAL TV) 1 cycle 529.63 ns (CLK = 30.2097 MHz - NTSC TV) E
Figure 5-4. HSYNC and BLANK Timing Table 5-5. Horizontal Synchronization Timing
CF = 0 (Cycles) A B C D E G H 112 90 19 3 8 4 8 CLK= 28 MHz (s) 64.0 51.43 10.9 1.71 4.57 2.29 4.57 CF = 1 ST = 0 (Cycles) 120 96 20 4 9 4 9 CLK = 30 MHz (s) 64.0 51.2 10.7 2.13 4.8 2.13 4.8 CLK = 30.2097 30 2097 MHz (s) 63.56 50.84 10.59 2.12 4.77 2.12 4.77 CF = 1 ST = 1 (Cycles) 120 90 23 7 9 4 9 CLK = 30 MHz (s) 64.0 48.0 12.3 3.7 4.8 2.13 4.8 CLK = 30.2097 30 2097 MHz (s) 63.56 47.67 12.18 4.77 4.77 2.12 4.77
J VSYNC L K M BLANK NOTES: J = Total Vertical Display Period K = Active Vertical Display P = Vertical Sync Width P
Figure 5-5. VSYNC and BLANK Timing
5-4
MCD212
MOTOROLA
Table 5-6. Vertical Synchronization Timing (in lines)*
50 Hz (FD = 0) ST = 0 J K L M P 312 280 26 6 2.5 ST = 1 312 240 46 26 2.5 60 H (FD = 1) Hz 262 240 18 4 3
* Non-interlace mode (SM = 0)
Table 5-7. Vertical Synchronization Timing (in lines)
50 Hz (FD = 0) Odd Field (PA = 1) ST = 0 J K L M P 312.5 280 26 6.5 2.5 ST = 1 312.5 240 46 26.5 2.5 Even Field (PA = 0) ST = 0 312.5 280 26.5 6 2.5 ST =1 312.5 240 46.5 26.5 2.5 60 Hz (FD = 1) Odd Field (PA = 1) 262.5 240 18 4.5 3 Even Field (PA = 0) 262.5 240 18.5 4 3
* Interlace Mode (SM = 1) NOTES: To determine the time from the number of display lines, simply multiply the number of lines by the total line width (not the active display width). For instance, in an NTSC system with a 63.56 s (from Table 5-5) line width, the total vertical display time for an interlace display is: 63.56 s x 262.5 lines = 16.6845 ms or the display rate is: 59.94 Hz. P VSYNC 310 CSYNC 311 312 1 2 3 4 5
Figure 5-6. CSYNC Timing in the 50 Hz (FD = 0), Non-interlace Mode (SM = 0)
P VSYNC 260 CSYNC 261 262 1 2 3 4 5
Figure 5-7. CSYNC Timing in the 60 Hz (FD = 1), Non-interlace Mode (SM = 0)
MOTOROLA
MCD212
5-5
P VSYNC
623 CSYNC (ODD FIELD)
624
625
1
2
3
4
5
310 CSYNC (EVEN FIELD)
311
312
313
314
315
316
317
318
G
A/2 A
H
Figure 5-8. CSYNC Timing in the 50 Hz (FD = 0), Interlace Mode (SM = 1)
P VSYNC
523 CSYNC (ODD FIELD)
524
525
1
2
3
4
5
260 CSYNC (EVEN FIELD)
261
262
263
264
265
266
267
268
Figure 5-9. CSYNC Timing in the 60 Hz (FD = 1), Interlace Mode (SM = 1)
5.4
SOFTWARE
The VDSC offers the possibility to fetch control information during vertical and horizontal retrace periods from the Image Control Area (ICA) and Dynamic Control Area (DCA), respectively. Each video channel has its associated ICA and DCA. For channel 1 this is ICA1 and DCA1, and for channel 2 this is ICA2 and DCA2. ICA/DCA control is identical and independent for both channels.
5.4.1 ICA Control
ICA control consists of fetching long-word instructions during the vertical retrace period. The ICA pointers are indicated in Table 5-8. Table 5-8. ICA Pointer Addresses
Interlace Non-Interlace N I l Channel 1 (ICA1) Channel 2 (ICA2) h400 h200400 Odd Field (PA = 1) h400 h200400 Even Field (PA = 0) h404 h200404
NOTE: Odd and even fields are indicated by the PA bit in the CSR1R register.
5-6
MCD212
MOTOROLA
The possible number of ICA fetches is equal to the lines during vertical retrace times the display line width expressed in long words. Example: The number of crystal periods needed for a long-word access depends on the type of data being fetched. However, for example, if each access required five crystal periods then the following numbers would apply. From Table 5-5: the total number of (16 CLK period) cycles = 120 per line. So, there are 120 x 16 = 1920 crystal periods. From Table 5-6: the number of lines in vertical blanking is 262 - 240 = 22 lines for the non-interlace mode. Therefore, there are: 22 x 1920 = 42,240 crystal periods during vertical blanking and 42,240/16 = 2640 memory fetches. The video start register is also used as an ICA pointer after a "reload VSR" instruction to perform indirect ICA addressing during ICA instruction fetches to allow for linking blocks of instructions. All "reload VSR" instructions must contain an address with A0 = 0, A1 = 0, and A2 = 0. Each block ending with a "reload VSR" instruction must contain an even number of instructions including the "reload VSR" instruction, except for the first block.
5.4.2 DCA Control
The instruction fetch takes place in the horizontal retrace period. The DCA size is 64 bytes/line. The DCA is completely independent of the bit map or display file areas. The DCA pointer (DCP) points to the first line of the DCA. The second DCA line is pointed to automatically by DCP + 64 bytes. The DCP can be changed at any time by the "reload DCP and stop" instruction. This allows for linking blocks of instructions on a line-by-line basis.
5.4.3 ICA/DCA Initialization
The ICA and DCA are enabled by the DE bit in the DCR1 register. The IC and DC bits of the DCR register control three possible ICA/DCA modes. Table 5-9. ICA1/DCA1 and ICA2/DCA2 Modes
ICA1/DCA1 Modes DE 1 1 1 0 IC1 0 1 1 x DC1 x 0 1 x ICA1 No Yes Yes No DCA1 No No Yes No DE 1 1 1 0 IC2 0 1 1 x ICA2/DCA2 Modes DC2 x 0 1 x ICA2 No Yes Yes No DCA2 No No Yes No
When IC and DC are set to 1, the number of possible DCA fetches can be limited by the line retrace duration as indicated in the following tables.
MOTOROLA
MCD212
5-7
Table 5-10. Possible DCA1/DCA2 Fetches per Line
Possible DCA1 Fetches Per Line IC1 0 1 1 1 DC1 x 0 1 1 CF x x 0 1 DCA1 (in bytes) 0 0 32 64 IC2 0 1 1 1 Possible DCA2 Fetches Per Line DC2 x 0 1 1 CF x x 0 1 DCA2 (in bytes) 0 0 32 64
NOTE: An automatic stop instruction is performed at the end of the available area (when the effective DCA is larger than indicated). The allocated memory size is always 64 bytes even if the possible number of fetches is lower.
5.4.4
ICA/DCA Instructions
ICA/DCA instructions are contained in the system RAM. They are long-word aligned and long-word wide. The most significant byte indicates which register or registers are updated by the information contained in the other bytes. The instructions can be divided into two groups. The instructions from the first group affect the control of the instruction fetches, the display parameters, and interrupt generation (see Table 5-11). The instructions from the second group affect the video decoder and visual effects part (see Chapter 11). The control of the instructions fetches and display parameters can also be affected by the system (CPU). None of the registers can be read by the system. Table 5-11. ICA Control Instructions
Instruction (Bit 31 - 0) 0000 ---- ---- ---- ---- ---- ---- ---- 0001 ---- ---- ---- ---- ---- ---- ---- 0010 ---- -- pp pppp pppp pppp pppp pp -- 0011 ---- -- pp pppp pppp pppp pppp pp -- 0100 ---- -- pp pppp pppp pppp pppp pppp 0101 ---- -- pp pppp pppp pppp pppp pppp 0110 ---- ---- ---- ---- ---- ---- ---- 0111 1 --- ---- ---- ---- ---- --0b cdef Acronym STOP NOP RELOAD DCP RELOAD DCP and STOP RELOAD VSR RELOAD VSR and STOP INTERRUPT RELOAD DISPLAY PARAMETERS Action Stop the control sequence. The instruction fetches are stopped until the next field. No operation. Reload the DCP register and its associated address counter with the specified pointer (p). Reload the DCP register and its associated address counter with the specified pointer (p) and stop control fetches as STOP instruction. Reload ICA pointer. It functions as a jump instruction. It does not affect the VSR pointer. Reload the VSR register and the video address counter with the specified pointer and stop the control fetches as STOP instruction. Set IT bit in CSR register. b = CM c = MF1 d = MF2 e = FT1 f = FT2
5-8
MCD212
MOTOROLA
Table 5-12. DCA Control Instructions
Instruction (Bit 31 - 0) 0000 ---- ---- ---- ---- ---- ---- ---- 0001 ---- ---- ---- ---- ---- ---- ---- 0010 ---- -- pp pppp pppp pppp pppp pp -- 0011 ---- -- pp pppp pppp pppp pppp pp -- 0100 ---- -- pp pppp pppp pppp pppp pppp 0101 ---- -- pp pppp pppp pppp pppp pppp 0110 ---- ---- ---- ---- ---- ---- ---- 0111 1 --- ---- ---- ---- ---- --0b cdef Acronym STOP NOP RELOAD DCP RELOAD DCP and STOP RELOAD VSR RELOAD VSR and STOP INTERRUPT RELOAD DISPLAY PARAMETERS Action Stop the control sequence. The instruction fetches are stopped until the next field. No operation. No operation. Reload the DCP register and its associated address counter with the specified pointer (p) and stop control fetches as STOP instruction. Reload the VSR register and the video address counter with the specified pointer. Reload the VSR register and the video address counter with the specified pointer and stop the control fetches as STOP instruction. Set IT bit in CSR register. b = CM c = MF1 d = MF2 e = FT1 f = FT2
Via several internal registers, the CLUT and the cursor-RAM, it is possible to program the real-time decoder of the VDSC and to perform visual effects. During the vertical and horizontal retrace periods, the VDSC can load above-mentioned registers/RAMs. Each instruction consists of a long-word. The most significant byte indicates the register involved; the remaining three bytes contain control data. The instructions are transferred via CH#1 or CH#2, which are byte wide with the most significant byte first.
MOTOROLA
MCD212
5-9
Table 5-13. Register Map
Channel No. 1+2 1 1 1 1+2 1 -- 2 1 -- 2 1 2 -- 1 1 1 1+2 1 1 2 1 2 -- Address (h) 80 to BF C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 to D7 D8 D9 DA DB DC DD to FF Register Name CLUT Color 0 - 63 Image Coding Method Transparency Control Plane Order CLUT Bank Transparent Color for Plane A Reserved Transparent Color for Plane B Mask Color for Plane A Reserved Mask Color for Plane B DYUV Abs. Start Value for Plane A DYUV Abs. Start Value for Plane B Reserved Cursor Position Cursor Control Cursor Pattern Region Control 0 - 7 Backdrop Color Mosaic Pixel Hold for Plane A Mosaic Pixel Hold for Plane B Weight Factor for Plane A Weight Factor for Plane B Reserved
5.4.4.1
CLUT Color Register 0 - 63 (h80 - hBF)
Programmable via CH#1 and CH#2. Table 5-14. CLUT Color Register 0 - 63 -- Address h80 - hBF
23 R7 22 R6 21 R5 20 R4 19 R3 18 R2 17 -- 16 -- 15 G7 14 G6 13 G5 12 G4 11 G3 10 G2 9 -- 8 -- 7 B7 6 B6 5 B5 4 B4 3 B3 2 B2 1 -- 0 --
R7 - R2, G7 - G2, and B7 - B2 contain the color-data of one pixel. Only the 6 MSBs per byte are implemented. The CLUT RAM is addressable in two steps. First, one of the four CLUT banks must be selected via the CLUT bank register (address A7, A6). Second, the address within the bank is given by selecting a CLUT register h80 - hBF.
5-10
MCD212
MOTOROLA
Table 5-15. CLUT RAM Addresses
CLUT Bank 0 1 2 3 CLUT 0 - 63 00 (Reg. 80) - 3F (Reg. BF) 00 (Reg. 80) - 3F (Reg. BF) 00 (Reg. 80) - 3F (Reg. BF) 00 (Reg. 80) - 3F (Reg. BF) CLUT Address (h) 00 - 3F 40 - 7F 80 - BF C0 - FF
5.4.4.2
Image Coding Method Register (hC0)
Programmable via CH#1. Table 5-16. Image Coding Method Register -- Address hC0
23 -- 22 CS 21 -- 20 -- 19 NR 18 EV 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 C M 23 10 C M 22 9 C M 21 8 C M 20 7 -- 6 -- 5 -- 4 -- 3 C M 13 2 C M 12 1 C M 11 0 C M 10
CS: CLUT select for dual 7-bit CLUTs: 0 = CLUT bank 0 and 1 1 = CLUT bank 2 and 3 NR: number of region flags: 0 = one region flag is used 1 = two region flags are used EV: external video enable: 0 = disabled 1 = enabled Table 5-17. CM1x, CM2x: Coding Method for Plane A, B
Input Channel CH#1 CH#2 CH#1 CH#1 CH#1 CH#1 CH#1 CH#1 + CH#2 CH#2 CH#2 CH#2 Mode OFF OFF CLUT8 CLUT7 CLUT7+7 DYUV CLUT4 RGB555 CLUT7 DYUV CLUT4 Resolution -- -- Normal Normal Normal Normal Double Normal Normal Normal Double CM 23 -- 0 -- -- -- -- -- 0 0 0 1 CM 22 -- 0 -- -- -- -- -- 0 0 1 0 CM 21 -- 0 -- -- -- -- -- 0 1 0 1 CM 20 -- 0 -- -- -- -- -- 1 1 1 1 CM 13 0 -- 0 0 0 0 1 -- -- -- -- CM 12 0 -- 0 0 1 1 0 -- -- -- -- CM 11 0 -- 0 1 0 0 1 -- -- -- -- CM 10 0 -- 1 1 0 1 1 -- -- -- --
MOTOROLA
MCD212
5-11
5.4.4.3
Transparency Control Register (hC1)
Programmable via CH#1. Table 5-18. Transparency Control Register -- Address hC1
23 MX 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 10 9 8 7 -- 6 -- 5 -- 4 -- 3 2 1 0 TB3 TB2 TB1 TB0 TA3 TA2 TA1 TA0
MX: disable mixing: 0 = mix 1 = no mix Table 5-19. Transparency Control Register -- Address hC1
TA3 TB3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 TA2 TB2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 TA1 TB1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 TA0 TB0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Pixel is Transparent if: Always (Plane Disabled) Color Key = True Transparency Bit = 1 Region Flag 0 = True Region Flag 1 = True Region Flag 0 or Color Key = True Region Flag 1 or Color Key = True N.U. Never (No Transparent Area) Color Key = False Transparency Bit = 0 Region Flag 0 = False Region Flag 1 = False Region Flag 0 or Color Key = False Region Flag 1 or Color Key = False N.U.
NOTE: TA, TB = select transparency mechanism for plane A, B individually.
5.4.4.4
Plane Order Register (hC2)
Programmable via CH#1. Table 5-20. Plane Order Register -- Address hC2
23 -- 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 -- 4 -- 3 -- 2 O3 1 O2 0 O1
5-12
MCD212
MOTOROLA
Table 5-21. Plane Order
O3 0 0 O2 0 0 O1 0 1 Plane Order Plane A in front of Plane B Plane B in front of Plane A
NOTE: All other values are not used.
5.4.4.5
CLUT Bank Register (hC3)
Programmable via CH#1 and CH#2 independently. Table 5-22. CLUT Bank Register -- Address hC3
23 -- 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 -- 4 -- 3 -- 2 -- 1 A7 0 A6
Table 5-23. Bank Select
A7 0 0 1 1 A6 0 1 0 1 Bank Select Bank 0 Bank 1 Bank 2 Bank 3
NOTE: Only banks 2 and 3 are programmable (A7 = 1) via CH#2.
5.4.4.6
Transparent Color Register (hC4 - hC6)
hC4: programmable via CH#1 for plane A. hC5: reserved. hC6: programmable via CH#2 for plane B. Table 5-24. Transparent Color Register -- Address hC4 - hC6
23 R7 22 R6 21 R5 20 R4 19 R3 18 R2 17 -- 16 -- 15 G7 14 G6 13 G5 12 G4 11 G3 10 G2 9 -- 8 -- 7 B7 6 B6 5 B5 4 B4 3 B3 2 B2 1 -- 0 --
Transparent color is only defined for the CLUT mode: CLUT8, CLUT7, CLUT7 + 7, and CLUT4.
5.4.4.7 Mask Color Register (hC7 - hC9)
hC7: programmable via CH#1 for plane A. hC8: reserved. hC9: programmable via CH#2 for plane B. Table 5-25. Mask Color Register -- Address hC7 - hC9
23 R7 22 R6 21 R5 20 R4 19 R3 18 R2 17 -- 16 -- 15 G7 14 G6 13 G5 12 G4 11 G3 10 G2 9 -- 8 -- 7 B7 6 B6 5 B5 4 B4 3 B3 2 B2 1 -- 0 --
Mask color is only defined for the CLUT mode: CLUT8, CLUT7, CLUT7 + 7, and CLUT4.
MOTOROLA
MCD212
5-13
5.4.4.8
Delta YUV Absolute Start Value Register (hCA, hCB)
hCA: programmable via CH#1 for plane A. hCB: programmable via CH#2 for plane B. Table 5-26. Delta YUV Absolute Start Value Register -- Address hCA - hCB
23 Y7 22 Y6 21 Y5 20 Y4 19 Y3 18 Y2 17 Y1 16 Y0 15 U7 14 U6 13 U5 12 U4 11 U3 10 U2 9 U1 8 U0 7 V7 6 V6 5 V5 4 V4 3 V3 2 V2 1 V1 0 V0
hCA: YUV start value for plane A. hCB: YUV start value for plane B. Y,U,V = absolute Y,U,V start value.
5.4.4.9 Cursor Position Register (hCD)
Programmable via CH#1. Table 5-27. Cursor Position Register -- Address hCD
23 -- 22 -- 21 Y9 20 Y8 19 Y7 18 Y6 17 Y5 16 Y4 15 Y3 14 Y2 13 Y1 12 Y0 11 -- 10 -- 9 X9 8 X8 7 X7 6 X6 5 X5 4 X4 3 X3 2 X2 1 X1 0 X0
Y9 - Y0: Cursor Y-position: Y9 = MSB Y0 = LSB X9 - X0: Cursor X-position in double resolution: X9 = MSB X0 = LSB
Y X
Figure 5-10. Cursor Position The cursor origin is always the top lefthand corner of the full-screen display.
5-14
MCD212
MOTOROLA
5.4.4.10
Cursor Control Register (hCE)
Programmable via CH#1. Table 5-28. Cursor Control Register -- Address hCE
23 EN 22 21 20 19 18 17 16 15 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 -- 4 -- 3 Y 2 R 1 G 0 B BL CO CO CO CO CO CO CU KC N2 N1 N0 F2 F1 F0 W
EN: Cursor enable: 0 = cursor disable (transparent) 1 = cursor enabled BLKC: blink type: 0 = on/off 1 = on/complement CON2 - CON0: period of the cursor on: Period = 12 * (CON-value) * (field-period) COF2 - COF0: period of the cursor off: Period = 12 * (COF-value) * (field-period) If COF = 0 the cursor is on indefinitely. Table 5-29. Cursor Color
Y 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 G 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 B 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Black Half-brightness blue Half-brightness green Half-brightness cyan Half-brightness red Half-brightness magenta Half-brightness yellow Half-brightness white Black Blue Green Cyan Red Magenta Yellow White Cursor Color
CUW: cursor resolution: 0 = normal resolution for horizontal direction 1 = double resolution for horizontal direction
MOTOROLA
MCD212
5-15
5.4.4.11
Cursor Pattern Register (hCF)
Programmable via CH#1. Table 5-30. Cursor Pattern Register -- Address hCF
23 -- 22 -- 21 -- 20 -- 19 AD 3 18 17 16 AD 0 15 CP 15 14 CP 14 13 CP 13 12 CP 12 11 CP 11 10 9 8 7 CP 7 6 CP 6 5 CP 5 4 CP 4 3 2 1 0 AD AD 2 1 CP CP CP 10 9 8 CP CP 3 2 CP CP 1 0
AD3 - AD0: Y address register CP15 - CP0: line pattern register: CP15 is the left-most pixel. CP0 is the right-most pixel.
AD 0 HEX CP15 CP0
F HEX
Figure 5-11. Cursor Pattern Diagram
5.4.4.12 Region Control Register 0 - 7 (hD0 - hD7)
Programmable via CH#1 and CH#2. In case the registers are loaded simultaneously from both channels, then CH#1 has the first priority. At that moment CH#2 will be ignored. If the region control is not used, then the operation code OP3 - OP0 of the region control register D0 and D4 must be 0000. This means the end of the region control for the line. Table 5-31. Region Control Register -- Address hD0 - hD7
23 22 21 20 19 -- 18 -- 17 -- 16 RF 15 14 13 12 11 10 9 8 X8 7 X7 6 X6 5 X5 4 X4 3 X3 2 X2 1 X1 0 X0 OP OP OP OP 3 2 1 0 WF WF WF WF WF WF X9 5 4 3 2 1 0
OP3 OP2 OP1 OP0: operation control
5-16
MCD212
MOTOROLA
Table 5-32. Operation Control Codes
OP3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 OP2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 OP1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 OP0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Operation Control End of Region Control for the Line N.U. N.U. N.U. Change Weight of Plane A. New Weight-Value is WF5-0 N.U. Change Weight of Plane B. New Weight-Value is WF5 -WF0 N.U. Reset Region Flag Set Region Flag N.U. N.U. Reset Region Flag and Change Weight of Plane A Set Region Flag and Change Weight of Plane A Reset Region Flag and Change Weight of Plane B Set Region Flag and Change Weight of Plane B
RF: region flag to be changed: 0 = region flag 0 1 = region flag 1 The RF bit is only valid if the NR bit in register COH is 0. WF5 - WF0: next new weight factor value X9 - X0: X-position: Distance from the lefthand edge of display, in double resolution.
5.4.4.13 Backdrop Color Register (hD8)
Programmable via CH#1. Table 5-33. Background Color Register -- Address hD8
23 -- 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 -- 4 -- 3 Y 2 R 1 G 0 B
Y R G B: Color of backdrop plane
MOTOROLA
MCD212
5-17
Table 5-34. Color of Background Plane
Y 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 G 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 B 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Black Half-Brightness Blue Half-Brightness Green Half-Brightness Cyan Half-Brightness Red Half-Brightness Magenta Half-Brightness Yellow Half-Brightness White Black Blue Green Cyan Red Magenta Yellow White Color of Background
5.4.4.14
Mosaic Pixel Hold Factor Register (hD9, hDA)
hD9: programmable via CH#1 for plane A. hDA: programmable via CH#2 for plane B. Table 5-35. Mosaic Pixel Hold Factor Register -- Address hD9, hDA
23 EN 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 Z7 6 Z6 5 Z5 4 Z4 3 Z3 2 Z2 1 Z1 0 Z0
EN: pixel hold enable: 0 = mosaic off 1 = mosaic on Z7 - Z0: number of pixels to be held: 0 = reserved 1 = normal usage 2-255 = mosaic effect The pixel hold factor is effective at both normal and double resolution.
5.4.4.15 Weight Factor Register (hDB - hDC)
hDB: programmable via CH#1 for plane A. hDC: programmable via CH#2 for plane B. Table 5-36. Weight Factor Register -- Address hDB - hDC
23 EN 22 -- 21 -- 20 -- 19 -- 18 -- 17 -- 16 -- 15 -- 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 4 3 2 1 0 W5 W4 W3 W2 W1 W0
W5 - W0: weight factor value: W5 = MSB W0 = LSB
5-18 MCD212 MOTOROLA
5.5
BITMAP
For bitmap files, the width of the bitmap is related to that of the display line, but not necessarily the same (see Table 5-37). For mosaic files, the width of the bitmap is divided by the mosaic factor. For run-length files, the bitmap width is not related to the display width. The Video Start Pointer (VSR) points to the first pixel in a bitmap. In case of interlace mode this is the first pixel of the odd field. The bitmap of the even field follows the one of the odd field. If no reload of the VSR is performed the first pixel of a line is consecutive to the last pixel of the previous line for all file types. If in the DCA, a reload of the VSR is performed, the VSR will point to the first pixel of the following line. In the next frame, the reloaded VSR points to the first pixel of the (odd) frame. Table 5-37. Bitmap Width for Bitmap Files
Horizontal Resolution (pixels) 360 720 360 720 384 768 360 720 Bitmap Width (bytes) 360 360 384 384 384 384 360 360
CF 0 0 0 0 1 1 1 1
ST 0 0 1 1 0 0 1 1
CM 0 1 0 1 0 1 0 1
5.6
EFFECT OF STANDARD BIT
5.6.1
Effect on Vertical Timing
The vertical action of the ST bit is to display images created with a 60 Hz system in a 50 Hz system and is possible only in 50 Hz mode (FD = 0). If ST is set to 1, the vertical display area and blanking area have 40 lines less, 20 less at the top and 20 less at the bottom. The vertical resolution becomes 240 lines.
5.6.2 Effect on Horizontal Timing
The action is to display images created with a 28 MHz system in a 30 MHz system and vice versa. In the 28 MHz mode, if ST = 1, the horizontal resolution is unchanged (360 pixels) but the number of pixel fetches continue to 384. This allows the use of a 384 pixels bitmap file or the detection of the zero code (end of line) in a run-length line (see Section 6.2). If ST = 0, the resolution and the width of the bitmap are 360 pixels. In the 30 MHz mode, if ST = 1, the horizontal resolution and the width of the bitmap are decreased from 384 to 360 pixels. Twelve pixels are masked on either side of the screen, giving a centered image. The horizontal display area is reduced by 24 pixels. This allows for the display of a 360-pixel bitmap. The BLANK pin now has a zero state during the masking area of 2 x 12 pixels. N.B.: The explanation above concerns normal resolution display. With double resolution display all the widths must be doubled.
MOTOROLA MCD212 5-19
5.7
VIDEO SYNCHRONIZATION
If the DE (Display Enable) bit in the DCR1 register is set, the VDSC generates video synchronization at outputs HSYNC, VSYNC, CSYNC and BLANK. If DE is reset, the HSYNC, VSYNC, and CSYNC outputs are high and the BLANK output is low. The VDSC may work in master or in slave TV mode. Selection of the mode is done with the M/S pin. If the M/S (Master/Slave) pin is pulled up, then the master mode is selected. If this pin is pulled down then the slave TV mode is selected. Table 5-38. Synchronization Modes
M/S 1 0 Synchro Mode Master Slave TV HSYNC Out Out CSYNC Out Out VSYNC Out In
In the master mode, the HSYNC, CSYNC, and VSYNC signals are generated as output. In the slave TV mode, HSYNC and CSYNC are generated as output, the VSYNC pin is in the input mode and must receive an external VSYNC signal. An even frame is displayed if the falling edge of the VSYNC input falls in the range from 1/4 to 3/4 between two successive falling edges of the HSYNC output. An odd frame is displayed if the falling edge of VSYNC falls outside this range. HSYNC is input to the phase comperator of an external phase-lock loop oscillator supplying CLK. The other input of the phase comparator is an external HSYNC signal.
VSYNC
EXT. VIDEO SUBSYSTEM
HSYNC
EXTERNAL PLL HSYNC CLK VDSC
Figure 5-12. VDSC in Slave Mode with an External PLL for Clock Generation
VSYNC
EXT. VIDEO SUBSYSTEM
HSYNC
CLK
VDSC
Figure 5-13. VDSC in Slave Mode with an External Clock
5-20
MCD212
MOTOROLA
6
DISPLAY FILE DECODER
The VDSC contains two identical and independent display file decoders, one for channel 1 (plane A) and one for channel 2 (plane B). Each can handle three types of files:
* Normal file or bitmap file: each pixel has its own address. * Run-length file: consecutive identical pixels (bytes or associated nibbles) are grouped in the same
block of information.
* Mosaic file: as with a normal file but with resolution divided by a mosaic factor. The VDSC is in charge
of duplicating each pixel according to the mosaic factor (2, 4, 8, or 16). The initialization of the file type is made with the FT1 - FT2 bits of the DDR1 and DDR2 register: Table 6-1. File Type of Display 1
FT 1 0 1 1 FT 2 x 0 1 Display 1 File Type Bitmap Run-length Mosaic
NOTE: File type of display 1 is indicated in DDR1 register.
Table 6-2. File Type of Display 2
FT 1 0 1 1 FT 2 x 0 1 Display 1 File Type Bitmap Run-length Mosaic
NOTE: File type of display 2 is indicated in DDR2 register.
6.1
BITMAP FILE
The pixel data are packed in the memory. Four words are fetched per memory access. These words are always page aligned in the DRAM. The first pixel of a line can be any of the eight bytes in the first access. Each word that the VDSC fetches in the memory for display is serialized according to Figures 6-1 and 6-2.
MOTOROLA
MCD212
6-1
MEMORY DATA BUS MD15 - MD0 15 14 13 12 11 10 9 1ST BYTE 76 5 4 3 2 10 76 5 4 87 6 543 2 1 0
2ND BYTE 3 2 1 0
PIXEL 1
PIXEL 2
Figure 6-1. Bitmap Serialization in 8 Bits/Pixel
MEMORY DATA BUS MD15 - MD0 15 14 13 12 11 10 9 1ST NIBBLE 8 7 6 54 3 2 1 0
2ND NIBBLE
3RD NIBBLE
4TH NIBBLE
BIT 32
BIT 10
BIT 32
1
BIT 0
BIT 32
BIT 10
BIT 32
1
BIT 0
PIXEL 1
PIXEL 2
PIXEL 3
PIXEL 4
Figure 6-2. Bitmap Serialization in 4 Bits/Pixel
6.2
RUN-LENGTH FILE
The run-length coding technique permits file compression by grouping into one block consecutive pixels that have the same color. The VDSC uses either a 7- or a 3-bit color look up table (CLUT) to provide either 1 out of 128 colors or 1 out of 8 different colors. The run-length compression is applied to each video line independently of the others. The run-length file is organized as a list of information about pixels without any notion of width or height as in bitmap files. (Refer to Section 7.2, CLUT Decoder.)
6.2.1
Run-length 7-Bit CLUT Files
Run-length 7-bit CLUT files are either a single byte (for a single pixel) or two bytes (for a run of pixels on a single line) in length. A 0 in the first bit indicates a single pixel CLUT address whereas a 1 in the first bit indicates a run of pixels on the present line. The run only extends to the end of the line and does not continue to the next line. The second byte indicates the number of identical pixels to be reproduced on the current line. A 0 in the second byte indicates that this color is to be repeated to the end of the line. A 1 is forbidden in the second byte. The eight bits allowed for 2 to 255 identical bits to be repeated or with a 0, the rest of the line will have the same pixel repeated. Every line must finish with a "zero-length" run (N = 0), which means that at a minimum, the last two pixels of the line are identical. Figure 6-3 shows the format for both.
SINGLE PIXEL 7 MULTIPLE PIXELS 15 NOTE:
0 6
7-BIT CLUT ADDRESS 0
1 14
7-BIT CLUT ADDRESS 87
N = NUMBER OF IDENTICAL PIXELS (8 BITS) 0
N = 0 means "duplicate this pixel to the end of the line". N = 1 is forbidden.
Figure 6-3. Run-length Format in 7 Bits/Pixel
6-2 MCD212 MOTOROLA
6.2.2
Run-length 3-Bit CLUT Files
The run-length 3-bit CLUT files are similar to the 7-bit files except that instead of a single pixel, this format specifies pixel pairs. Also, instead of 7-bit CLUT addresses only 3 bits plus a 0 in the MSB are used to generate a 4-bit CLUT.
FIRST PIXEL PIXEL PAIR 7 MULTIPLE PIXEL PAIRS NOTE: 0 6 FIRST PIXEL 1 15 14 3-BIT CLUT 12 0 11 10 3-BIT CLUT 4 1 32 SECOND PIXEL 3-BIT CLUT 87 N = NUMBER OF IDENTICAL PIXEL PAIRS (8 BITS) 0 SECOND PIXEL 3-BIT CLUT 0
N = 0 means "duplicate this pixel to the end of the line". N = 1 is forbidden.
Figure 6-4. Run-length Format in 3 Bits/Pixel If the number of pixel pairs indicated is greater than the number of remaining pixels in the line, then only the number of pixels necessary to complete the line is displayed.
6.3
MOSAIC FILE
The mosaic technique consists of changing the resolution of the screen by duplicating pixels by a mosaic factor, n. The mosaic file is then effectively compressed by the factor n. The VDSC automatically duplicates the pixels. The mosaic factor is indicated in the DDR1 and DDR2 register. Table 6-3. Mosaic Factor of Display 1
MF1 0 0 1 1 MF2 0 1 0 1 Mosaic Factor 2 4 8 16
NOTE: Bits indicated in DDR1 register.
Table 6-4. Mosaic Factor of Display 2
MF 1 0 0 1 1 MF 2 0 1 0 1 Mosaic Factor 2 4 8 16
NOTE: Bits indicated in DDR2 register.
The mosaic file works at the byte level. In 4 bits/pixel mode, the pixels are duplicated by groups of two.
MOTOROLA
MCD212
6-3
6.4
PIXEL OUTPUT
The video channels 1 and 2 are enabled by the DE-bit in the DCR1 register. The video channels can be in different modes (see Tables 6-5 and 6-6). Table 6-5. Output Modes of Channel 1
DE 1 CM 1 1 Bits/Pixel 4 Frequency CLK/2 Resolution Double
NOTE: Bits indicated in DCR1 register.
Table 6-6. Output Modes of Channel 2
DE 1 CM 2 1 Bits/Pixel 4 Frequency CLK/2 Resolution Double
NOTE: Bits indicated in DCR1 register.
6-4
MCD212
MOTOROLA
REAL-TIME DECODER
7
To decode the pixel streams entering via channel 1 and channel 2, several decoders are available: one delta YUV decoder per channel, one color look up table (CLUT) to be shared by both channels, and direct RGB to be generated via both channels. The decoded pixel streams represent the two graphics planes: A and B. The cursor and backdrop are programmed via channel 1.
7.1
DELTA YUV DECODER
YUV stands for luminance (Y) and color difference (U and V). The U and V components are horizontally subsampled by a factor of two and transmitted alternatively every other pixel. The missing U and V components are interpolated using linear interpolation. The human eye is much less sensitive to color variation than variations in luminance, therefore any error due to interpolation will not be detected. The last missing U or V component of a line is found by repeating the last U or V component. The Y component ranges from 0 to 255. The U and V components are signed but are given an offset of 128 to make them positive. The U and V components then range from 1 to 255. The expected ranges for R, G, and B are from 0 to 255. To avoid wrap-around for values outside this range, output limiters are implemented. The absolute Y, U, and V components are decoded to R, G, and B using the following equations: R = lim[ trunc{ ( Y*256 + 351*(V - 128) ) / 256 } ] G = lim[ trunc{ ( Y*256)(86*(U - 128) + 179*(V - 128)) ) / 256 } ] B = lim[ trunc{ ( Y*256 + 444*(U - 128) ) / 256 } ] trunc{x} = greatest integer less than or equal to x lim[x] = 0 if x < 0 = 255 if x > 255 = x else Delta YUV (DYUV) coding is particularly useful for the reproduction of high quality natural images. These images typically have a high degree of correlation between adjacent pixels. This correlation is used in delta YUV decoding by only coding the difference between adjacent pixels rather than their absolute value; this is the delta. This difference is coded in 4 bits, using a non-uniform 16-level fixed quantizer. The VDSC executes the opposite operation, using the values in Table 7-1.
MOTOROLA
MCD212
7-1
Table 7-1. Dequantizer
Input 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Output 0 1 4 9 16 27 44 79 128 177 212 229 240 247 252 255
The output of the dequantizer is added to the previous absolute value to obtain a new absolute value. The operation mentioned above applies for Y, U, and V. Decoding delta YUV comprises DYUV to YUV decoding and YUV to RGB decoding (matrixing). (For an explanation of delta YUV encoding, see Appendix A.) Delta decoding is initialized before the beginning of each display line by using programmable absolute start values for Y, U, and V. These initial values for each line are loaded via the display control program. (See Section 5.4.5.8.) Since the human eye is less sensitive to variations in color than to changes in intensity, the color data is subsampled by a factor of two. This means that for each pixel there is a Y value, but a U and V value for every other pixel. This allows for a certain amount of data compression with no perceived loss of image quality. The data is stored as the YUV for the first pixel and then the Y data for the second pixel and the UV data for the third pixel. The U and V data for the second pixel is interpolated from the first and third. The data structure of the input and output of the DYUV decoder is given in Figure 7-1. All calculations are performed using 8 bits, however only the most significant 7 bits of R, G, and B are given as output.
Ui 15 12 11 WHERE i = PIXEL LOCATION
Yi 8 7
Vi 43
Yi + 1 0
Figure 7-1. Data Structure of DYUV Decoder Input and Output Pixel-pair DYUV decoding of coded pixel-data entering via channel 1 results in plane A and DYUV decoding of coded pixel-data entering via channel 2 results in plane B.
7-2
MCD212
MOTOROLA
7.2
CLUT DECODER
Color look up table (CLUT) decoding is a method of compressing display files. Instead of using 24 bits of storage for each pixel, a table of colors is set up. Then, the pixel data that is stored in memory is not the actual color values, but rather a pointer to a specific color in the look up table. The VDSC supports CLUT8 (256 colors), CLUT7 (128 colors), CLUT7+7 (2 x 128 colors), CLUT4 (16 colors), and CLUT3 (8 colors -- used for run-length files). Pixel-decoding via a CLUT is useful for applications in which a limited number of different colors is required (e.g., computer graphics and bit- mapped text). The CLUT technique allows storing a maximum of 256 different colors in RGB, where each component has 6-bit accuracy (RGB666). This gives a total of 2**18 (262144) possible colors. To comply with RGB777, one LSB of 0 is added. The CLUT is divided into four banks (banks 0 to 3), see Figure 7-2, with each bank having 64 entries. The colors for the CLUT are loaded via the CLUT color registers (h80 - hBF) after the appropriate bank has been selected via the CLUT bank register (hC3). After the colors have been stored, using the control mechanism, the required color can be obtained by addressing it.
WRITE (LOADING) CH#1 CH#2 BS 63 11 CLUT BANK 3 0 63 10 CLUT BANK 2 CLUT8 255
READ (DECODING) CLUT7 CLUT4 127 CHANNEL 2 PLANE B OR CHANNEL 1 PLANE A
0 63
CHANNEL 1 PLANE A
0 127
15 PLANE A/CH#2 0
01
CLUT BANK 1 0 63 CLUT BANK 0 0 0 0 CHANNEL 1 PLANE A 15 PLANE A/CH#1 0
00
Where BS = Bank Select (set in CLUT bank register hC3).
Figure 7-2. CLUT Organization Control-data entered via channel 1 can load banks 0 to 3. Control-data entered via channel 2 can load banks 2 and 3. The address is always in the range 0 - 63: CLUT 0 - 63. To be able to address all 256 entries, a CLUT bank selection is used. This CLUT bank selection is independent for both channels; so it is possible to simultaneously (i.e., in the same line) load colors to banks 0 and 1 via channel 1 and to load colors to banks 2 and 3 via channel 2. It is not possible to simultaneously load colors to banks 2 and 3 via both channels. Pixel-data entering via channel 1 can address all banks. Pixel-data entering via channel 2 can address banks 2 and 3 only. Depending on the number of bits that can be used to address colors, different coding methods are distinguished: CLUT8 (256 colors), CLUT7 (128 colors), CLUT7+7 (2 x 128 colors), CLUT4 (16 colors). See Figure 7-3 for the pixel representation. CLUT7+7 means that 7 address bits are available to address either banks 0 and 1 or banks 2 and 3, depending on what banks are selected. CLUT8 and CLUT7+7 are not available for channel 2. When channel 1 uses CLUT8 or CLUT7+7, channel 2 has no CLUT mode.
MOTOROLA MCD212 7-3
CLUT8
7 MSB
6
5
4
3
2
1
0 LSB
CLUT7 OR CLUT7+7
X MSB
6
5
4
3
2
1
0 LSB
CLUT4
3 MSB
2
1
0
X
X
X
X LSB
Figure 7-3. Data Structure of Input CLUT Pixel CLUT4 can only be used in double resolution mode (768 pixels/line).
7.3 DIRECT RGB555
Direct RGB555 (R, G, and B in 5 bits each) is intended mainly for computer graphic images. It passes the pixel data of both channels directly to plane B. To comply with RGB777, two LSBs of 0 are added. To control RGB555 pixel transparency, a transparency bit (T) is used. Figure 7-4 shows the data structure of an RGB555 pixel.
INPUT 15 OUTPUT R4 R3 R2 R1 R0 0 0 0
T
R4
R3
R2
R1
R0
G4
G3
G2
G1
G0
B4
B3
B2
B1
B0 0
G4
G3
G2
G1
G0
0
0
0
B4 MSB
B3
B2
B1
B0
0
0
0 LSB
Figure 7-4. Data Structure of RGB555 Input and Output Pixel
7-4
MCD212
MOTOROLA
7.4
DECODING COMBINATIONS
The available display modes for planes A and B are not identical, see Tables 7-2 and 7-3. Not every combination of display modes of plane A and plane B is possible. The combination of coding methods is restricted according to Table 7-4. Table 7-2. Display Modes for Plane A
Channel CH1 CH1 CH1 CH1 CH1 CH1 Coding Method OFF CLUT8 CLUT7+7 CLUT7 CLUT4 DYUV CM1 x 0 0 0 1 0 Resolution x Normal Normal Normal Double Normal
Table 7-3. Display Modes for Plane B
Channel CH2 CH2 CH2 CH2 CH1 + 2 Coding Method OFF CLUT7 CLUT4 DYUV RGB555 CM1 x 0 1 0 0 Resolution x Normal Double Normal Normal
Table 7-4. Possible Combinations of Display Modes
Plane A Plane B OFF CLUT7 CLUT4 DYUV RGB555 Off Y Y Y Y Y CLUT8 Y N N Y N CLUT7+7 Y N N Y N CLUT7 Y Y Y Y N CLUT4 Y Y Y Y N DYUV Y Y Y Y N
Y = Possible Combination N = Not Possible
MOTOROLA
MCD212
7-5
7.5
BACKDROP
The backdrop plane can have 16 different colors, see Table 7-5. This BD plane is positioned behind the cursor and planes A and B. The color is programmed by writing via CH1 to register hD8. The possible colors are listed in Table 7-5 along with the complimentary colors which can be used for the cursor. Table 7-5. Possible Cursor and Background Colors
Cursor YRGB 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Color Black hb - Blue hb - Green hb - Cyan hb - Red hb - Magenta hb - Yellow Grey Black Blue Green Cyan Red Magenta Yellow White Background Complementary Color Grey hb - Yellow hb - Magenta hb - Red hb - Cyan hb - Green hb - Blue Black White Yellow Magenta Red Cyan Green Blue Black YRGB 0111 0110 0101 0100 0011 0010 0001 0000 1111 1110 1101 1100 1011 1010 1001 1000
NOTE: hb = Half Brightness. Full Brightness = level 230, Half = level 122, Black = level 16.
7.6
CURSOR
The cursor is shown in the cursor plane. The dimension of the cursor plane is 16 x 16 pixels. A 1 in the cursor plane activates the cursor color for that pixel, while a 0 sets it to transparency. The resolution of the cursor can be switched between normal resolution and double resolution. The cursor has one color. The cursor plane can be enabled or disabled. The cursor color is set by programming the cursor control register via CH#1 at location hCE. Along with setting the color, the cursor enable, the on/off period, and cursor resolution can be programmed via this same register. The cursor can be set to blink with programmable on and off periods. Both periods can be specified by three bits. The on/off periods equal multiples of 12 times the TV field period (200 ms in 60 Hz system; 240 ms in 50 Hz system). If on and off periods are both set to 0, then the cursor is on indefinitely. The blink type may be "on/off" or "normal color/complementary color". The cursor position is related to the position of the upper-left pixel in the cursor plane and is programmed via CH#1 in the cursor position register at location hCD. The X-position of this pixel is specified by the number of double resolution pixels between this pixel and the left border of the full screen display. The Y-position is specified by the number of lines between this pixel and the upper part of the full screen display. Cursor control and position can be programmed during horizontal and/or vertical retrace periods. The cursor pattern is programmed via CH#1 at location hCF.
7-6 MCD212 MOTOROLA
8
VISUAL EFFECTS
8.1
PLANES
The real-time decoder provides four planes, represented in RGB components. These planes are:
* Cursor * Image Plane A * Image Plane B * Backdrop
The two image planes can originate from four types of coding:
* OFF * Direct RGB555 * CLUT * DYUV
Here OFF means a black image (level 16, where 235 is the nominal peak white level). The cursor and backdrop each consist of one color, both of which are programmable. The visual effects combine the separate planes into one final image.
8.2 PIXEL HOLD
The pixel hold allows plane A and/or plane B to be viewed at reduced resolution. The pixel hold function operates after the pixel codes have been decoded to RGB. Therefore, it can be used for all images, independent of their coding method, either by DYUV, CLUT, or RGB. Both image planes contain such a pixel-hold mechanism that can act independently of the other plane. Every Nth pixel RGB value is held for that pixel and the next N-1 pixels, where N is the pixel hold factor. This produces a mosaic-type effect on the image. See Figure 8-1 for an example.
BEFORE PIXEL HOLD: P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 ...
AFTER PIXEL HOLD (n = 3): P0 P0 P0 P3 P3 P3 P6 P6 P6 P9 ...
Figure 8-1. Pixel Hold Example for N = 3
MOTOROLA
MCD212
8-1
The pixel hold function causes a "mosaic" or "granulation" effect in the horizontal direction (i.e., the resolution is lowered without the image size changing). The pixel hold factor is programmed via the mosaic pixel hold factor register located at location hD9 for plane A and hDA for plane B. Plane A is programmed via CH#1 and Plane B is programmed via CH#2. The pixel hold factor can be any value from 2 to 255. The pixel hold factor is effective at both normal resolution and double resolution according to the resolution.
8.3 REGIONS
Within the image planes, regions can be defined by means of two region flags, called flag RF0 and flag RF1. Two region flags allow regions to overlap (see Figure 8-2). These flags can be set and reset by eight region control registers. These registers are loaded during the horizontal and vertical retrace periods, using the control mechanism.
RF0 RF0 RF1
Figure 8-2. Example Showing Overlapping and Non-overlapping Regions The region control registers 0 - 7 can control the two region flags in two modes. In the first mode, registers 0 - 3 are linked to region flag 0 and registers 4 - 7 are linked to region flag 1 (see Figure 8-3). In the second mode, the eight registers are explicitly linked to a region flag (see Figure 8-4). The first mode allows the two region flags to be changed at the same position. The selection of the mode used is done in the "image coding method register" by the NR bit.
RF0: REGION CONTROL REGISTER HORIZONTAL POSITION RF1: 0 1 2 3 REGION CONTROL REGISTER HORIZONTAL POSITION
4
5
6
7
X0
X1
X2
X3
X4
X5
X6
X7
CONSTRAINT: X0 < X1 < X2 < X3
CONSTRAINT: X4 < X5 < X6 < X7
Figure 8-3. Implicit Control of Region Flags (NR = 1)
REGION CONTROL REGISTER REGION FLAG HORIZONTAL POSITION
0
1
2
3
4
5
6
7
RF0/ RF1
RF0/ RF1
RF0/ RF1
RF0/ RF1
RF0/ RF1
RF0/ RF1
RF0/ RF1
RF0/ RF1
X0
X1
X2
X3
X4
X5
X6
X7
CONSTRAINT: X0 < X1 < X2 < X3 < X4 < X5 < X6 < X7
Figure 8-4. Explicit Control of Region Flags (NR = 0)
8-2 MCD212 MOTOROLA
The region control registers are examined on their specified horizontal position sequentially. Depending on the mode, this sequence ranges from 0 to 7 or from 0 to 3 and from 4 to 7. When a match between the specified horizontal position and the actual horizontal pixel count is found, the corresponding command is executed. This command can set/reset the corresponding or specified region flag, change one of the two weight factors, or end the region control for the line (no further registers are examined). So for all registers to be noticed, the position sequence stored in the region control registers has to be ascending (see Figures 8-3 and 8-4). The horizontal position is specified with respect to the double rate clock (maximally 768 pixels per line). The region flags are automatically reset before the start of each line.
8.4 TRANSPARENCY
Transparency of planes can be obtained by:
* Disabling * Regions * Color Key * Transparency Bit
The image planes (A/B) and the cursor can be made transparent by disabling them. Parts of both image planes can be made transparent depending on the state of one of the two region flags. For both image planes a color key is available for CLUT decoded images. The state of the color key is determined on a pixel basis. Every CLUT decoded pixel is compared to an in RGB666 specified color; the so-called transparent color. If all bits match or if the corresponding mask bit is true, the color key is true. A transparency bit is available from every direct RGB555 coded pixel.
8.5 OVERLAY AND MIXING
The four planes must be combined into one image. This is achieved by overlay and mixing. Overlay means that only one plane at a time is shown. This is done by giving the planes an order and by using transparency, a plane can only be seen if it is not transparent and all higher order planes are transparent. The order is from high to low cursor, plane A/plane B, backdrop. The order of A and B can be selected A in front of B or B in front of A (see Figure 8-5).
BACKGROUND/EXTERNAL VIDEO GRAPHICS PLANE B CURSOR PLANE GRAPHICS PLANE A
Figure 8-5. Plane Order It is also possible to overlay external video as an alternative for backdrop. This is done by using an external switch operated by the VDSC pin VSD or VSA. The VSD signal is synchronous to the digital output, whereas VSA is delayed one CLK2 clock cycle to counteract for a delay caused by a clocked DAC. VSD and VSA are active if enabled by the EV-bit of the "image coding method register" and when the backdrop is shown.
MOTOROLA MCD212 8-3
Mixing is applied to image planes A and B. They are weighted and added (see Figure 8-6). The weighting and adding is done preserving the black level (level 16): AB = lim[ (A ) 16) * WEIGHT_A/64 + (B) 16) * WEIGHT_B/64 + 16 ] When the result exceeds level 255, the result is fixed at 255. When the result is less than level 0, the result is fixed at 0. Planes A and B are made transparent for overlay by making them black.
BL_A PLANE A MUX BLACK (16) A X WEIGHT_A (0...63) BACKDROP CURSOR
VDSC
EXTERNAL VIDEO ANALOG SWITCH
+
PLANE B MUX BLACK (16) BL_B WEIGHT_B (0...63) B X AB (0...255)
MUX
MUX
DAC
BD
CUR VSD VSA
Figure 8-6. Overlay and Mixing -- One Color Component Weight factors are programmed via the weight registers. The weight factors can be dynamically changed by the region control registers at the position they indicate. Backdrop and cursor can be overlaid on the combined planes A and B. During horizontal and vertical blanking of the video a constant level is set on each component. For 50 Hz display this level is 16 and for 60 Hz display 0.
8-4
MCD212
MOTOROLA
REGISTER DESCRIPTION
9
This section describes the internal registers of the VDSC. Below is a chart that describes the registers that affect video plane 1 and plane 2. Table 9-1 shows the various registers and which bits in those registers can be read or written. Table 9-1. Register Summary
Channel 1 CSR1R CSR1W DCR1 VSR1 DDR1 DCP1 Channel 2 CSR2R CSR2W DCR2 VSR2 DDR2 DCP2 Status Register 2 Control Register 2 Display Command Register 2 Video Start Register 2 Display Decoder Register 2 DCA Pointer 2 Read Write Write Write Write Write h4FFFE1 h4FFFE0 h4FFFE2 h4FFFE4 h4FFFE8 h4FFFEA Status Register 1 Control Register 1 Display Command Register 1 Video Start Register 1 Display Decoder Register 1 DCA Pointer 1 Read Write Write Write Write Write h4FFFF1 h4FFFF0 h4FFFF2 h4FFFF4 h4FFFF8 h4FFFFA
MOTOROLA
MCD212
9-1
9.1
REGISTER MAP
Table 9-2. Register Bitmap
Name CSR1R CSR2R CSR1W CSR2W DCR1 DCR2 DDR1 DDR2 VSR1 VSR2 DCP1 DCP2 15 x x DI1 DI2 DE x x x * * * * 14 x x x x CF x x x * * * * 13 x x x x FD x x x * * * * 12 x x x x SM x x x * * * * 10 x x x x CM1 CM2 MF1 MF1 * * * * 9 x x DD1 x 0 0 MF2 MF2 * * * * 8 x x DD2 x IC1 IC2 FT1 FT1 * * * * 7 DA x x x DC1 DC2 FT2 FT2 * * * * 6 x x x x x x x x * * * * 5 PA x TD x x x x x * * * * 4 x x x x * * * * * * * * 3 x x DD x * * * * * * * * 2 x IT1 x x * * * * * * * * 1 x IT2 ST x * * * * * * x x 0 x BE BE x * * * * * * x x
9.1.1
Control Registers CSR1W and CSR2W
These registers control the system related functions of the VDSC. They are reset to 0 during the initialization sequence. This is the default configuration. CSR1W (write, 4FFFF0) Table 9-3. Control Register 1 -- Write, 4FFFF0
15 DI1 14 -- 13 -- 12 -- 11 -- 10 -- 9 DD1 8 DD2 7 -- 6 -- 5 TD 4 -- 3 DD 2 -- 1 ST 0 BE
DI1 DD1 - DD2
(Disable Interrupts) When set to 1, disables the propagation to the INT pin for the IT1 bit (see STATUS register). This bit does not disable the IT1 bit. (DTACK delay) Active when DD = 1. These two bits permit four different delays for the DTACK generation when the CPU accesses the system ROM.
Table 9-4. DTACK Delay
DD 0 1 1 1 1 DD1 x 0 0 1 1 DD2 x 0 1 0 1 CLK Cycles 11 12 34 56 78 9 10
TD DD
9-2
(Type of DRAM) to be 0 for 256K x 4 and 256K x 16 devices and 1 for 1M x 4 devices. DTACK Delay for the ROM. See DD1 - DD2.
MCD212 MOTOROLA
ST
(Standard bit) When set to 1, this bit permits a resolution modification in order to display images which don't have the resolution indicated by the DCR1 register. When set to 1, the effect is: Vertical resolution: In 50 Hz mode (FD = 0), the resolution is shortened by 20 lines at the top and 20 lines at the bottom. Images created in a 60 Hz system are then directly usable in a 50 Hz system. Horizontal resolution: * In 28 MHz, the bit map file is 384 pixels wide instead of 360 pixels. The horizontal resolution is unchanged, but it is possible to display bitmap, run-length or mosaic coded images created with a 30 MHz or 30.2097 MHz system. * In 30 MHz or 30.2097 MHz, the horizontal resolution is decreased from 384 pixels to 360 pixels, 12 pixels are masked on either side of the screen.
BE
(Bus Error) When set to 1, this bit activates the watchdog timer and enables the BERR generation.
CSR2W (write, 4FFFE0)
Table 9-5. Control Register 2 -- Write, 4FFFE0
15 DI2 14 -- 13 -- 12 -- 11 -- 10 -- 9 -- 8 -- 7 -- 6 -- 5 -- 4 -- 3 -- 2 -- 1 -- 0 --
DI2
(Disable Interrupts) When set to 1, disables the propagation to the INT pin for the IT2 bit (see STATUS register). This bit does not disable the IT2 bit.
9.1.2
Status Registers CSR1R and CSR2R
These registers are read as a byte and contain the status of the VDSC.
CSR1R (read, 4FFFF1)
Table 9-6. Status Register CSR1R -- Read, 4FFFF1
7 DA 6 -- 5 PA 4 -- 3 -- 2 -- 1 -- 0 --
DA
(Display Active) This bit is the vertical display active information. When high, it indicates that the display controller is fetching information from the video memory. It does not change on each horizontal retrace. (Parity) This bit indicates the frame parity when the scan mode is in interlace or interlace field repeat mode. It is 1 for the odd frame and 0 for the even frame.
PA
MOTOROLA
MCD212
9-3
CSR2R (read, 4FFFE1)
Table 9-7. Status Register CSR2R -- Read, 4FFFE1
7 -- 6 -- 5 -- 4 -- 3 -- 2 IT1 1 IT2 0 BE
IT1
(Interrupt1) This bit can be set to 1 by the ICA/DCA mechanism to generate an interrupt to the CPU. At the same time, the INT pin goes low, if the DI1 bit is set to 1 in the CSR1 register. The IT1 bit and the INT pin will be reset automatically when the CPU reads the status register. (Interrupt2) This bit can be set to 1 by the ICA/DCA mechanism to generate an interrupt to the CPU. At the same time, the INT pin goes low, if the DI2 bit is set to 1 in the CSR2 register. The IT2 bit and the INT pin will be reset automatically when the CPU reads the status register. (Bus Error) This bit is set to 1 when a bus error condition has been generated by the watchdog timer. This bit is automatically reset after a status read operation.
IT2
BE
9.1.3
Display Command Registers DCR1 and DCR2
The Display Command Registers group control bits for the display and six MSBs of the Video start address. The eight MSBs are reset to 0 after the RESET sequence.
DCR1 (write, 4FFFF2)
Table 9-8. Display Command Register DCR1 -- Write, 4FFFF2
15 DE 14 CF 13 FD 12 SM 11 CM1 10 0 9 IC1 8 DC1 7 -- 6 -- 5 A21 4 A20 3 A19 2 A18 1 A17 0 A16
DE CF
(Display Enable) Enables display access to DRAM and enables synchronization outputs when set to 1. (Crystal Frequency) Must be programmed as a function of the crystal oscillator frequency as follows. Table 9-9. Crystal Frequency
CF 0 1 Frequency in MHz 28 30, 30.2097
FD SM
(Frame Duration) When reset to 0, a 50 Hz scan is generated. When set to 1, a 60 Hz scan frequency is generated. (Scan Mode) This bit is used to select the scan mode.
9-4
MCD212
MOTOROLA
Table 9-10. Scan Mode
SM 0 1 Scan Mode Non-interlace Interlace
CM1
(Color Mode of channel 1) This bit controls the pixel output mode. Table 9-11. Channel 1 Color Mode
CM1 1 Bits/Pixel 4 Pixel Frequency CLK/2
IC1 - DC1
(ICA1 - DCA1) These two bits enable the ICA1 and DCA1 mechanisms. Table 9-12. ICA1/DCA1 Enable
IC1 0 1 1 DC1 x 0 1 ICA1 No Yes Yes DCA1 No No Yes
A21 - A16
Most significant bits of the video start address, acting in conjunction with the VSR.
DCR2 (write, 4FFFE2)
Table 9-13. Display Command Register DCR2 -- Write, 4FFFE2
15 -- 14 -- 13 -- 12 -- 11 CM2 10 0 9 IC2 8 DC2 7 -- 6 -- 5 A21 4 A20 3 A19 2 A18 1 A17 0 A16
CM2
(Color Mode of channel 2) This bit controls the pixel output mode. Table 9-14. Channel 2 Color Mode
CM2 0 1 Bits/Pixel 8 4 Pixel Frequency CLK/4 CLK/2
IC2 - DC2
(ICA2 - DCA2) These two bits enable the ICA2 and DCA2 mechanisms. Table 9-15. ICA1/DCA1 Enable
IC2 0 1 1 DC2 x 0 1 ICA2 No Yes Yes DCA2 No No Yes
A21 - A16
Most significant bits of the video start address, acting in conjunction with the VSR.
MOTOROLA
MCD212
9-5
9.1.4
Display Decoder Registers DDR1 and DDR2
These registers contain control bits for the display, files to be displayed, and the six MSB bits of the DCA pointer. All the bits, except the six LSBs, are reset to 0 after the reset sequence.
DDR1 (write, 4FFFF8)
Table 9-16. Display Decoder Register 1 -- Write, 4FFFF8
15 -- 14 -- 13 -- 12 -- 11 MF1 10 MF2 9 FT1 8 FT2 7 -- 6 -- 5 A21 4 A20 3 A19 2 A18 1 A17 0 A16
MF1 - MF2
(Mosaic Factor) Set the horizontal mosaic factor:
Table 9-17. Channel 1 Mosiac Factor
MF1 0 0 1 1 MF2 0 1 0 1 Mosaic Factor 2 4 8 16
FT1 - FT2
(File type) Indicate the type of file to be displayed:
Table 9-18. Channel 1 Display File Type
FT1 0 1 1 FT2 x 0 1 Display File Type Bitmap Run-length Mosaic
A21 - A16
Most significant bits of the DCA1 pointer.
DDR2 (write,4FFFE8)
Table 9-19. Display Decoder Register 2 -- Write, 4FFFE8
15 -- 14 -- 13 -- 12 -- 11 MF1 10 MF2 9 FT1 8 FT2 7 -- 6 -- 5 A21 4 A20 3 A19 2 A18 1 A17 0 A16
9-6
MCD212
MOTOROLA
MF1 - MF2
(Mosaic Factor) Set the horizontal mosaic factor:
Table 9-20. Channel 2 Mosiac Factor
MF1 0 0 1 1 MF2 0 1 0 1 Mosaic Factor 2 4 8 16
FT1 - FT2
(File type) Indicate the type of file to be displayed:
Table 9-21. Channel 2 Display File Type
FT1 0 1 1 FT2 x 0 1 Display File Type Bitmap Run-length Mosaic
A21 - A16
Most significant bits of the DCA2 pointer.
9.1.5
Video Start Registers VSR1 and VSR2
These 16-bit registers plus some bits in DCR1[5:0]/DCR2[5:0] give a 22-bit video start register address that points to the first byte of the display area that can be located anywhere in the DRAM. Horizontal or vertical rolling subscreens can be implemented anytime by the "reload VSR and stop" ICA or DCA instruction. The VSR is also used as an ICA pointer with the "reload VSR" instruction, which allows indirect addressing inside ICA.
VSR1 (write, 4FFFF4)
Table 9-22. Video Start Register 1 -- Write, 4FFFF4
15 A15 14 A14 13 A13 12 A12 11 A11 10 A10 9 A9 8 A8 7 A7 6 A6 5 A5 4 A4 3 A3 2 A2 1 A1 0 A0
VSR2 (write, 4FFFE4)
Table 9-23. Video Start Register 2 -- Write, 4FFFE4
15 A15 14 A14 13 A13 12 A12 11 A11 10 A10 9 A9 8 A8 7 A7 6 A6 5 A5 4 A4 3 A3 2 A2 1 A1 0 A0
MOTOROLA
MCD212
9-7
9.1.6
DCA Pointers DCP1 and DCP2
These 14-bit registers plus some bits in DDR1[5:0]/DDR2[5:0] give a 20-bit DCA pointer that points to the first long-word of the DCA. The DCA can thus be located anywhere in the DRAM and the DCA pointer is always long-word aligned.
DCP1 (write, 4FFFFA)
Table 9-24. Display Control Pointer 1 -- Write, 4FFFFA
15 A15 14 A14 13 A13 12 A12 11 A11 10 A10 9 A9 8 A8 7 A7 6 A6 5 A5 4 A4 3 A3 2 A2 1 -- 0 --
DCP2 (write, 4FFFEA)
Table 9-25. Display Control Pointer 2 -- Write, 4FFFEA
15 A15 14 A14 13 A13 12 A12 11 A11 10 A10 9 A9 8 A8 7 A7 6 A6 5 A5 4 A4 3 A3 2 A2 1 -- 0 --
9-8
MCD212
MOTOROLA
10
PIN LIST
10.1
PIN FUNCTION TABLE
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Function VSS RSTOUT VDD CS GND RSTIN HALT INT VDD CSROM TDO TDI CSIO BERR D0 D1 VSS D2 D3 D4 D5 D6 D7 VSS D8 D9 VDD D10 D11 D12 D13 VSS
Pin 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
Function D14 D15 DTACK VDD R/W LDS UDS VSS VDD A22 A21 A20 A19 A18 A17 A16 A15 A14 VSS A13 A12 A11 A10 A9 A8 A7 A6 A5 VDD A4 A3 A2
Pin 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
Function A1 VSS A23 MA9 MA8 MA7 MA6 MA5 MA4 MD15 MD14 MD13 VSS MD12 MD11 VDD MD10 MA3 MA2 MA1 AS MA0 LWR UWR VSS MD9 MD8 MD7 MD6 MD5 VDD VSS
Pin 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
Function MD4 MD3 DTACKSEL VDD MD2 MD1 MD0 VSS RAS M/S CAS1 OE CAS2 GND VSS VDD TCK VSS CLK CLK2 CLK2 VSS VDD NC VSYNC HSYNC BLANK VDD B0 B1 B2 VSS
Pin 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
Function B3 VDD B4 B5 B6 B7 G0 VSS G1 G2 VSS VDD G3 G4 G5 G6 TMS G7 R0 VDD R1 R2 R3 R4 VSS R5 R6 VSS R7 VSD VSA CSYNC
MOTOROLA
MCD212
10-1
OOOOOOOOOOOOOOOOOOOOOOOOO O O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOO O O O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOO O OOOOOOOOOOOOOOOOOOOOOOOOO O OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO O OO O OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O O OO OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O O O OO OO O OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO OO O OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO O OO O OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO OO OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO O OO OO OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO OOO O OOOOOOOOOOOOOOOOOO OO O OO O OO OOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOO OOOOOOOO
V DD 1 160 41 A22 A21 A20 A19 A18 A17 A16 A15 A14 V SS A13 A12 A11 A10 A9 A8 A7 A6 A5 V DD A4 A3 A2 A1 V SS A23* MA9 MA8 MA7 MA6 MA5 MA4 MD15 MD14 MD13 V SS MD12 MD11 V DD MCD212 160 QFP TOP VIEW
PIN CONFIGURATION
10-2
10.2
NOTE: Pin differences between the MCD211 and MCD212 are denoted with *.
VSS RSTOUT VDD CS GND RSTIN HALT INT VDD CSROM TDO* TDI* CSIO BERR D0 D1 VSS D2 D3 D4 D5 D6 D7 VSS D8 D9 VDD D10 D11 D12 D13 VSS D14 D15 DTACK VDD R/W LDS UDS VSS
40
MCD212
CSYNC VSA VSD R7 VSS R6 R5 VSS R4 R3 R2 R1 V DD R0 G7 TMS* G6 G5 G4 G3 V DD V SS G2 G1 VSS G0 B7 B6 B5 B4 V DD B3 VSS B2 B1 B0 V DD BLANK HSYNC VSYNC
MOTOROLA
80 121 81 120 NC VDD VSS CLK2 CLK2 CLK VSS TCK* VDD VSS GND CAS2 OE CAS1 M/S RAS VSS MD0 MD1 MD2 VDD DTACKSEL* MD3 MD4 VSS VDD MD5 MD6 MD7 MD8 MD9 VSS UWR LWR MA0 AS* MA1 MA2 MA3 MD10
11
ELECTRICAL SPECIFICATION
11.1
ABSOLUTE MAXIMUM RATINGS
Parameter Supply Voltage Input Voltage Output Voltage Output Current Power Dissipation Operating Temperature Storage Temperature
Symbol VDD VI VO IO PD Topr Tstg
Min - 0.5 - 1.5 - 0.5 -- -- 0 - 65
Max + 7.0 VDD + 1.5 VDD + 0.5 25 1200 + 70 + 150
Unit V V V mA mW C C
Test Conditions: VSS = 0 V, TA = 70 C.
MOTOROLA
MCD212
11-1
11.2
DC ELECTRICAL CHARACTERISTICS
VDD = 5 V 10%, VSS = 0 V, TA = 0 - 70C
Parameter Operating Supply Current Input Voltage (CMOS input) Input Voltage (TTL input) CMOS Schmitt Trigger Input Voltage Hysteresis -- Schmitt CMOS Input Leakage Current Output Voltage (4 mA Output Type) Output Voltage (8 mA Output Type) Output Leakage Current Input Capacitance ILI VOH VOL VOH VOL IOZ Cin VDD = VI = 0 V Symbol IDD VIH VIL VIH VIL VT+ VT- VDD = 4.5 V VDD = 5.5 V VDD = 5.5 V VDD = 4.5 V - 5.5 V VDD = 4.5 V - 5.5 V VI = VDD or VSS* IO = - 4 mA, VDD = 4.5 V IO = 4 mA, VDD = 4.5 V IO = - 8 mA, VDD = 4.5 V IO = 8 mA, VDD = 4.5 V Conditions VI = VDD or VSS CLK at 30.3 MHz Min -- 0.7 VDD -- 2.0 2.2 -- 2.0 1.5 0.11 VDD -1 3.7 -- 3.7 -- -5 -- Max 220 -- 0.3 VDD -- -- 0.8 3.4 2.6 0.18 VDD 1 -- 0.4 -- 0.4 5 10 Unit mA V V
V V A V V A pF
Output Capacitance Cout -- 12.5 pF * Leakage current is in addition to input current generated in pull-up resistors when the input is held low. (TDI, TMS, TCK have 100 k pull-ups).
11.3 AC CHARACTERISTICS
Conditions: VDD = 5 V ( 10%) TA = 0 - 70C VOL = 0.8 V, VOH = 2.2 V Cload (DTACK, INT) =130 pF , Rload (DTACK, INT) = 1 k Cload (D0 - D15, RSTOUT, HALT, BERR) = 130 pF Cload (MA0 - MA9, RAS, CAS1, CAS2) = 100 pF Cload (CSIO, CSROM, MD0 - MD15) = 50 pF Cload (CLK2, CLK2, HSYNC, VSYNC, CSYNC, BLANK, UWR, LWR RO - R7, G0 - G7, B0 - B7, VSA, VSD) = 75 pF
TIMING
No. 1 2 3 4 5 6 7 8 9 10 CLK Period CLK High Time CLK Low Time CLK High to CLK2 CLK High to CLK2 CLK2 Low to CLK2 High CLK2 Low to R0 - R7, G0 - G7, B0 - B7, VSYNC, HSYNC, CSYNC, BLANK5 CLK2 High to R0 - R7, G0 - G7, B0 - B7 CLK2 High to VSYNC, HSYNC, CSYNC, BLANK CLK2 Low to VSD, VSA Parameter Min 32 13 13 0 0 -5 4 5 5 5 Max -- -- -- 25 25 6 26 27 26 25 Unit ns ns ns ns ns ns ns ns ns ns Note
11-2
MCD212
MOTOROLA
TIMING (continued)
No. 11 12 13 14 15 16 17 18 19 20 21 21a 22 22a 23 23a 24 25 26 26a 27 28 29 30 30a 31 32 33 34 35 36 37 38 39 40 41 CLK2 High to VSD, VSA OE Low to R0 - R7, G0 - G7, B0 - B7 Three-State OE High to R0 - R7, G0 - G7, B0 - B7 Active Address to U/LDS Low (Read) U/LDS High to Address Invalid (Read) U/LDS Low to R/W High (Read) U/LDS Low to CS Low (Read) U/LDS High to R/W Hold (Read) U/LDS Low to DTACK Low (DRAM Read) U/LDS Low to DTACK Low (Register Read) U/LDS High to DTACK High (Three-State) DTACK Active High Time DTACK Low to Data Valid (Read) - Pin 99 Low DTACK Low to Data Valid (Read) - Pin 99 High U/LDS High to Data Invalid (Read) U/LDS High to Data Three-State (Read) Address to U/LDS Low (Write) U/LDS High to Address Invalid (Write) U/LDS Low to R/W Low (Write) U/LDS Low to CS Low (Write) U/LDS High to R/W High (Write) Data Valid to U/LDS Low (Write) U/LDS High to Data Invalid (Write) U/LDS Low to DTACK Low (DRAM Write) U/LDS Low to DTACK Low (Register Write) U/LDS High to DTACK Three-State (Write) U/LDS Low to CSROM or CSIO Low U/LDS High to CSROM or CSIO High U/LDS Low to DTACK for ROM Low U/LDS High to DTACK for ROM High RAS High Pulse Duration (tRP) RAS Low Pulse Duration (tRAS) CAS High Pulse Duration (tCP) CAS Low Pulse Duration (tCAS) CAS High to RAS Low Delay (tCRP) RAS Low to CAS Low Delay (tRCD) Parameter Min 5 5 5 0 5 -- -- 5 235 75 0 TBD -- -- 0 -- 0 0 -- -- 0 0 0 45 75 0 -- -- 11 + d 0 65 90 20 30 50 60 Max 25 23 23 -- -- 25 25 -- 320 135 43 TBD 40 32 -- 40 -- -- 25 25 -- -- -- 105 135 43 17 13 43 + d 50 -- -- -- -- -- -- Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns 3 1 1 2 1 1 Note
NOTES: 1. These figures are valid for free-run. If video is enabled the max delay increases with a maximum of 16 CLK periods. 2. This timing is switchable using Pin 99 and is valid for Video Channel and DRAM accesses Pin 99 - Low 40 ns (max) advance (68000/070/340/341-16) Pin 99 - High 32 ns (max) advance (68340/341-25) Timing of DTACK for ROM accesses is unchanged. 3. The delay d is the delay mentioned in the Delay Times Table and depends on the CLK frequency and the programmed value DD, DD1, DD2.
MOTOROLA
MCD212
11-3
TIMING (continued)
No. 42 42 43 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 CAS Low to RAS High Delay (tRSH) CAS Low to RAS High Delay (tRSH) RAS Low to CAS High Delay (tCSH) RAS Low to CAS High Delay (tCSH) RAS Low to Column Address Delay (tRAD) Row Address Set-Up Time (tASR) Row Address Hold Time (tRAH) Column Address Set-Up Time (tASC) Column Address Hold Time (tCAH) Data Set-Up Time to CAS Low (tDS) Data Hold Time to CAS Low (tDH) Read Set-Up Time to CAS Low (tRCS) Read Hold Time to CAS High (tRCH) Write Set-Up Time to CAS Low (tWCS) Write Hold Time to CAS Low (tWCH) RAS Low to Data Valid (tRAC) CAS Low to Data Valid (tCAC) Column Address to Data Valid (tAA) RAS Cycle Time CAS Cycle Time CAS High to Data Invalid (tOFF) Refresh Period 1M (tRFSH) Refresh Period 256K x 4 and 256K x 16 (tRFSH) RSTIN Low to RSTOUT/HALT Low RSTIN Low Time RSTIN High to RSTOUT High RSTOUT High to HALT High U/LDS High to BERR High DTACKSEL to DTACK Delay Active DTACK Low to Data Invalid (Write) Parameter Min 25 25 95 95 30 15 30 20 25 100 40 75 35 70 75 -- -- 150 50 0 9 5 75 2 150 59 TBD TBD TBD Max -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 90 21 45 45 -- -- -- 140 -- 160 64 TBD TBD TBD ns ns ns ns ns ns ns ns ns ns Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns Note
58 59 60 61 62 63 64 65 66 67
DELAY TIMES
CLK = 28 MHz DD0 0 1 1 1 1 DD1 x 0 0 1 1 DD2 x 0 1 0 1 Min 400 115 185 260 330 Max 470 185 260 330 400 CLK = 30 MHz Min 375 110 175 240 310 Max 445 175 240 310 375 CLK = 30.2097 MHz Min 370 105 170 235 305 Max 440 170 235 305 370 Units Ui ns ns ns ns ns
11-4
MCD212
MOTOROLA
CLK 2
1 3
CLK2
4 5 6
CLK2
Figure 11-1. Clock Timing
CLK2
CLK2
OE 7 VIDEO* 14 15 8 9
11 VSD 10 VSA * Video: R0 - R7, G0 - G7, B0 - B7, VSYNC, HSYNC, BLANK
Figure 11-2. Video Timing
MOTOROLA
MCD212
11-5
A1 - A22
14
15
R/W
16
18
CS
17
U/LDS
DTACK
19 20
21 22 23
D0 - D15
Figure 11-3. CPU Read Cycle Timing
24 A1 - A22 25
R/W
26
27
CS
26a
D0 - D15
28
29
U/LDS DTACK 30 31
Figure 11-4. CPU Write Cycle Timing
U/LDS CSROM CSIO DTACK FOR ROM 32 34 33 35
Figure 11-5. System Timing
11-6
MCD212
MOTOROLA
SYSTEM 37 RAS CAS1 CAS2 MA0 - MA9 36 40 41 44 ROW 51 53 UWR/LWR 49 MD0 - MD15 WRITE MD0 - MD15 READ 50 57 55 56 58 54 COL 52 42 45 46 COL COL 43 38 39 47 48 COL COL CH#1/CH#2
ROW
Figure 11-6. DRAM Timing
RSTIN RSTOUT 61 HALT
62 63
Figure 11-7. Reset and Halt Timing
MOTOROLA
MCD212
OO OO OO OO OO OO OO OO
64
OO OO
11-7
11-8
MCD212
MOTOROLA
PACKAGE DIMENSIONS
12
The VDSC is a surface mounting component and is housed in a 160-pin Plastic Quad Flat Package (QFP).
MOTOROLA
MCD212
12-1
QUAD FLAT PACK (QFP) CASE 1007-01
L Y
120 121 81 80
S
D
S
0.20 (0.008) M C A-B 0.50 (0.008) A-B
H A-B
S
D
S
-AL
-BB
P
V
0.20 (0.008)
M
-A,B,DDETAIL A
DETAIL A Z
160 1 41 40
-DA 0.20 (0.008) M C A-B 0.05 (0.002) A-B 0.20 (0.008)
M S
F
D
S
J D
N
S H A-B
S
S
BASE METAL D C E M DETAIL C -H-CSEATING PLANE DATUM PLANE
0.13 (0.005)
M
C A -B
S
D
S
DETAIL B
VIEW ROTATED 90_ CLOCKWISE
H
G
DETAIL B
M
0.10 (0.004)
MILLIMETERS MIN MAX 27.90 28.10 27.90 28.10 3.35 3.85 0.22 0.38 3.20 3.50 0.22 0.33 0.650 BSC 0.25 0.35 0.11 0.23 0.70 0.90 25.35 REF 5 16 0.11 0.19 0.325 BSC 0 7 0.13 0.30 31.00 31.40 0.13 -- 0 -- 31.00 31.40 0.40 -- 1.60 REF 1.33 REF 1.33 REF INCHES MIN MAX 1.098 1.106 1.098 1.106 0.132 0.152 0.009 0.015 0.126 0.138 0.009 0.013 0.0256 BSC 0.010 0.012 0.004 0.009 0.028 0.035 0.998 REF 16 5 0.004 0.007 0.0130 BSC 0 7 0.005 0.012 1.220 1.236 0.005 -- 0 -- 1.220 1.236 0.016 -- 0.063 REF 0.052 REF 0.052 REF
W U T
DATUM PLANE
-HR
K X DETAIL C Q
NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DATUM PLANE -H- IS LOCATED AT BOTTOM OF LEAD AND IS COINCIDENT WITH THE LEAD WHERE THE LEAD EXITS THE PLASTIC BODY AT THE BOTTOM OF THE PARTING LINE. 4. DATUMS -A-, -B- AND -D- TO BE DETERMINED AT DATUM PLANE -H-. 5. DIMENSIONS S AND V TO BE DETERMINED AT SEATING PLANE -C-. 6. DIMENSIONS A AND B DO NOT INCLUDE MOLD PROTRUSION. ALLOWABLE PROTRUSION IS 0.25 (0.010) PER SIDE. DIMENSIONS A AND B DO INCLUDE MOLD MISMATCH AND ARE DETERMINED AT DATUM PLANE -H-. 7. DIMENSION D DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.08 (0.003) TOTAL IN EXCESS OF THE D DIMENSION AT MAXIMUM MATERIAL CONDITION. DAMBAR CANNOT BE LOCATED ON THE LOWER RADIUS OR THE FOOT.
DIM A B C D E F G H J K L M N P Q R S T U V W X Y Z
12-2
MCD212
MOTOROLA
A
APPENDIX
A.1
DELTA YUV ENCODING
The MCD212 does not do the encoding of any image but this section is included as an informational reference to the process of image coding using the delta YUV (DYUV) process. Natural images are particularly well suited to DYUV encoding since there is usually little difference in the color or intensity of adjacent pixels. This makes for a very efficient coding of an image. The process to produce a normal resolution DYUV image (384 x 240) begins with a high resolution RGB image (768 x 480). The process to change from RGB to YUV uses the equations below: Y = 0.299 * R + 0.587 * G + 0.114 * B U = 0.564 * (B - Y) V = 0.713 * (R - Y) The normalized, eight-bit values of the components are obtained from the following equations: |Y| = 219 * Y + 16 |U| = 224 * U + 128 |V| = 224 * V + 128 In order to solve aliasing problems, the image is filtered, typically with a FIR filter to maintain the correct phase and then is subsampled by a factor of two in both the horizontal and vertical directions for the Y component. For the U and V components, the subsampling is by a factor of two in the vertical direction, but by a factor of four in the horizontal direction since the human eye is less sensitive to changes in color as opposed to changes in luminance.
A.2 DELTA CODING
The YUV components are now delta coded in the horizontal direction only. An initial 24-bit absolute value of the first pixel is used as the starting value (8 bits for each component). The YUV component of each sample for the rest of the line is coded using a 16-level quantizer (shown in Table A-1).
MOTOROLA
MCD212
A-1
Table A-1. 16-Bit Quantization Table
Input Difference 0 1 .... 2 3 .... 6 7 .... 12 13 ... 21 22 ... 35 36 ... 61 62 ... 99 100 ... 156 157 ... 194 195 ... 220 221 ... 234 235 ... 243 244 ... 249 250 ... 253 254 ... 255 - (254 ... 255) - (250 ... 253) - (244 ... 249) - (235 ... 243) - (221 ... 234) - (195 ... 220) - (157 ... 194) - (100 ... 156) - (62 ... 99) - (36 ... 61) - (22 ... 35) - (13 ... 21) - (7 ... 12) - (3 ... 6) - (1 ... 2) Code 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Output Difference 0 1 4 9 16 27 44 79 128 177 212 229 240 247 252 255
Example: Assume that the first seven pixels of the line (expressed as RGB) are as follows: 0,0,0 16,0,0 0,128,255 128,64,68 232,240,12 0,255,0 0,0,255
Converting to YUV gives: 16,128,128 20,126,135 105,203,63 88,120,156 197,29,141 144,54,35 41,240,110
Then the absolute value of the first pixel (8 bits) is sent for each of the components (shown in hex): h10,h80,h80 then the delta between the first and second pixels is calculated as 4-bit data from the table above (in hex): h2,hF,h3 then the delta of the Y component is calculated based on the difference from the last calculated value and the desired value (the U and V are skipped): h7 next the delta for all components is calculated: hD,hD,h4 and so on for the rest of the pixels: h8 In the MCD212, the data is reconstructed as follows: The first pixel is given by the absolute value: 16,128,128
A-2 MCD212 MOTOROLA
h9,h9,h8
h9
The second is calculated using the output difference column from the table above: 20,127,137 Then the rest are calculated in the same way: 99 90,118,153 218 139,39,25 60
Therefore the data for the seven pixels would be stored on disk as follows (in hex): h10,h80,h80,hF2,h37,hDD,h48,h99,h89
MOTOROLA
MCD212
A-3
A-4
MCD212
MOTOROLA


▲Up To Search▲   

 
Price & Availability of MCD212

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X